Java Program to Find Volume of Ellipsoid
class Main
{
public static void main(String [] args)
{
//length of 3 independent axes are declared
int x = 1;
int y = 1;
int z = 1;
//pie value declared
double pie = 3.14;
//finding volume
double vol = (4 * pie * x * y * z)/3;
System.out.println("The volume of ellipsoid is:" + vol);
}
}
Output:
The volume of ellipsoid is: 4.1866666666666665
Method-2: Java Program to Find V
