Java Program to Find Surface Area of Hemisphere

bookmark

class Main
{
    public static void main(String [] args)
    {
        //radius of hemisphere is declared
        int r = 1;
        //pie value declared
        double pie = 3.14;
        //find suraface area using formula
        double surface =  3 * pie * r * r;
        System.out.println("The surface area of hemisphere is : " + surface);
    }
}

 


Output:

The surface area of hemisphere is : 9.42