Math, asked by JAVAAA, 11 months ago

a program for generating area of circle

Answers

Answered by Anonymous
6
class AreaofCircle{
   public static void main()
   {
     {
     int r = 7;
     int Area = 22/7 * 7 * 7;
     System.out.println("Area of circle = " + Area);

     }
     }
   }

        Output

Area of circle = 154

____________________________________________________________________________________

Java is a predifined computer specialized coding.

Java follows some rules in the programs.





Answered by SaNuExTrEmE
0
class AreaofCircle{
   public static void main()
   {
     {
     int r = 9;
     int Area = 22/7 * 9 * 9;
     System.out.println("Area of circle = " + Area);

     }
     }
   }

        Output

Area of circle = 254


Similar questions