Skip to content
Related Articles

Related Articles

Java Program for Program to find area of a circle
  • Last Updated : 26 Jan, 2018
GeeksforGeeks - Summer Carnival Banner

Area of a circle can simply be evaluated using following formula.

Area = pi * r2
where r is radius of circle 


// Java program to find area
// of circle
class Test
    static final double PI = Math.PI;
    static double findArea(int r)
       return PI * Math.pow(r, 2);
    // Driver method
    public static void main(String[] args) 
        System.out.println("Area is " +  findArea(5));

Please refer complete article on Program to find area of a circle for more details!

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :