Find the Area of a Circle – Java Program August 31, 2019July 8, 2018 by Sumit JainArea 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 CodeOutput: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 coordinatesNumber of Contiguous Parking AreasJava 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 ArrayCalculate Log2n without using built-in functionJava program to find the largest element in arrayPrint My IP Address – Java CodeGet the Sum of Digits in a number till it become a single digit

Area is calculated incorrectly double area = 2*pi*radius;should bedouble area = pi * radius * radiusand 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