You are here: Home / Topics / Java Program for finding the area of Circle

Java Program for finding the area of Circle

Filed under: Java on 2023-08-11 19:05:05

// Program to find area of circle

class  AreaCircle

public static void main( String args[ ] )
{
 double rad;
 final double PI = 3.14159;

 rad = 10.0;

 double area = PI * rad * rad;
 System.out.print( "\n Area of Circle is = " + area );
}
}


Output:

Area of Circle is = 314.159

About Author:
V
Vinay Kumar     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.