A program in Java to assign radius with a value. Find and print area of circle using the formula: "area= πR2
Answers
Answered by
5
class Area
{
public static void main (int radius )
{
double pie=1.73 ,area=0.0d;
area =pie*(radius*radius);
System.out.println("Area is "+area);
}
}
Pls compile the program.
Mark me brainlest.i need it,I m 1st to answer your doubt.and follow me for more java doubts.
Similar questions