Area of a Circle - Java Programme to Find the Area of a Circle.



This is a Java Program to Calculate and Display Area of a Circle.
Formula:
Area of circle = pi * radius * radius
Enter the radius of the circle as input. Now we use the given formula to calculate the area of the circle using formula.

Here is the source code of the Java Program to Calculate and Display Area of a Circle. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.
Here we have used Math.PI for getting the value of pi.

Programme :

Output :
Radius of the circle is 5
Area of the Circle is 78.53981633974483


Follow me on:

Comments