//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");
}
0 Questions:
Post a Comment