Thursday, June 3, 2021

C++ program check volume of the cylinder (POP) (113)

 #include<iostream>

using namespace std;

int main()

{

int radious,height;

float volcy;

cout<<"please enter the radious of cylinder:";

cin>>radious;

cout<<"please enter the height of cylinder:";

cin>>height;

volcy=(3.14*radious*radious*height);

cout<<"the volume of the cylinder is:"<<volcy<<endl;

}

No comments:

Post a Comment