Wednesday, 27 August 2014

Volume of Ellipsoid solution in cpp

Leave a Comment

//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");
}
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: