Java Program to Find Volume of Hemisphere
class Main
{
public static void main(String[] args)
{
//declaring 'r' value
int r = 1;
//declaring pie value
double pie = 3.14;
//find volume of hemisphere by using formula
double vol = (2 * pie * r * r * r)/3;
System.out.println("The volume of hemisphere is: " + vol);
}
}
Output:
The volume of hemisphere is: 2.0933333333333333
