1.

A program in Java to assign radius with a value. Find and print area of circle using the formula: "area= πR2​

Answer»

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.



Discussion

No Comment Found