Menu
Question Index
...

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

Input (Length, Width) Output
10, 5 15.7
3.8, 1 3.14
7, 19 21.98



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

    }


    public static double perimeterOfCircle( 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