Padd Solutions

Converted by Falcon Hive

import java.util.Scanner;

public class circleRadius
{
    public static void main (String[] args)
    {
        Scanner scan = new Scanner (System.in);
       
        double rad, area;
       
        System.out.print ("Please enter the radius of your circle: ");
        rad = scan.nextDouble ();
        scan.nextLine ();
       
        area = (3.14159 * rad * rad);
       
        System.out.println ("The area of your circle is " +area);
    }
}

(0) Comments

Post a Comment