Find the Area of a Circle – Java Program

Area of a circle = πR2

Where π = 3.14 and R = radius of circle
Area Of Circle

Radius = 4.0
Area = π*radius*radius = 3.14*4*4 = 50.24



Area of circle with radius=4.0 is: 50.24

Top Companies Interview Questions..-

Google Microsoft Amazon Facebook more..

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.

You may also like...

2 Responses

  1. lipsa patel says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: