Powered By Blogger

18 February 2017

PROGRAM TO CALCULATE VOLUME OF CYLINDER.

INPUT=



#include<iosteram>
using namespace std;
int main()
{
      float v,r,h;
      cout<<"Enter radius and height=";
      cin>>r>>h;
      v=(3.14)*r*r*h;
      cout<<"The volume of cylinder is="<<v;
      return 0;
}

OUTPUT=


Enter radius and height = 2    4

The volume of cylinder is = 50.24

No comments:

Post a Comment