Hi ALL,
Here I wrote a program for Finding Area of a Circle in Given Radius Using Java.
/**
*
* @author Balamurgan
M
*/
public class area1 {
public static void
main(String arg[]){
double radius;
double area;
System.out.println(" Enter the size of the radius: \t ");
Scanner in=new
Scanner(System.in);
radius=in.nextDouble();
area=radius*radius*3.14;
System.out.println("The area of the Circle is "+area +"
the radius of "
+
"circle is " +radius);
}
}
No comments:
Post a Comment