Math, asked by askjava8, 1 year ago

Java program to generate area of circle

Answers

Answered by Anonymous
3
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