//Volume of Ellipsoid (4/3) × pi × radius1 × radius2 × radius3
#include<iostream>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double radius1,radius2,radius3,Ans;
cout<<"Enter Radius 1 = ";
cin>>radius1;
cout<<"Enter Radius 2 = ";
cin>>radius2;
cout<<"Enter Radius 3 = ";
cin>>radius3;
Ans=(4/3)*pi*radius1*radius2*radius3;
cout<<"Volume of Ellipsoid = "<<Ans<<endl;
system("pause");
}
0 Questions:
Post a Comment