Find the Area of a Circle – Java Program August 31, 2019July 8, 2018 by Sumit Jain Area of a circle = πR^{2} Where π = 3.14 and R = radius of circle Example: Radius = 4.0 Area = π*radius*radius = 3.14*4*4 = 50.24 Code:Run This Code Output: Area of circle with radius=4.0 is: 50.24 Related Posts:Find the Circumference of a Circle - Java ProgramFind the Area of Triangle using base and height - Java ProgramFind the Area of a Triangle Given Three Sides – Heron’s FormulaFind the Area and Perimeter of Rectangle – Java ProgramFind the Area of a Triangle Using coordinatesSite MapSum of all sub arrays in O(n) TimeJava Program to find if Triangle can be formed using given 3 sidesFind Factorial of a given NumberPrint First N Prime Numbers - Java CodeJava Program to determine if Given Year is Leap YearJava Program to find Sum the elements of an ArrayJava program to find the largest element in arrayCalculate Log2n without using built-in functionPrint My IP Address – Java Code

Area is calculated incorrectly double area = 2*pi*radius; should be double area = pi * radius * radius and the Out put should be 50.24 instead of 25.12 Reply

Area is calculated incorrectly

double area = 2*pi*radius;

should be

double area = pi * radius * radius

and the Out put should be 50.24 instead of 25.12

Thanks Lipsa. We have modified the code