Wednesday, 27 August 2014

Volume of Rectangular solution in cpp

Leave a Comment

//Volume of Rectangular           Prism side1 × side2 × side3
#include<iostream>
#include<math.h>
using namespace std;
static double pi=3.1415926535;
int main()
{
double side1,side2,side3,Ans;
cout<<"Enter Side 1 = ";
cin>>side1;
cout<<"Enter Side 2 = ";
cin>>side2;
cout<<"Enter Side 3 = ";
cin>>side3;
Ans=side1*side2*side3;
cout<<"Volume of Rectangular Prism = "<<Ans<<endl;
system("pause");
}
If You Enjoyed This, Take 5 Seconds To Share It