Java Program to Find Area of a Circumscribed Circle of a Square

bookmark

import java.util.Scanner;
public class Main
{
    public static void main(String[] args)
    {
        // Static initialization of side of the square
        double pi = 3.14;
        double side = 60;
        // Prints result of the square
        System.out.println("Area of the square "+(pi*side*side/2));
    }
}

 


Output:

Area of the square 5652.0