Java program to generate area of circle
Answers
Answered by
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.
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
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
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