#include<iostream>
using namespace std;
#define PI 3.14
int main()
{ float radius,height,volume;
cout<<"enter radius of cylinder "<<endl;
cin>>radius;
cout<<"enter height of cylinder "<<endl;
cin>>height;
volume=PI*radius*radius*height;
cout<<"the volume of cylinder is "<<volume;
}
using namespace std;
#define PI 3.14
int main()
{ float radius,height,volume;
cout<<"enter radius of cylinder "<<endl;
cin>>radius;
cout<<"enter height of cylinder "<<endl;
cin>>height;
volume=PI*radius*radius*height;
cout<<"the volume of cylinder is "<<volume;
}
No comments:
Post a Comment