Menu
Question Index
...

Find the area of the biggest circle which can be included in a rectangle.
Let PI = 3.14

Input (Length, Width) Output
4, 2 3.14
8, 6 28.26
7.5, 3.5 9.61625



class CalculateArea
{
    public static void main(String s[])
    {
        double result = areaOfCircle(10, 15);
        System.out.println("The area of the biggest circle is " + result);

    }


    public static double areaOfCircle( double length, double width )
        {
        }

}

Doubts

Problems

Topic: Java for loops vs Java while loops vs Java do while loops

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App