Thursday 18 August 2016

Volume of Cylinder

Volume of Cylinder

#include < stdio.h >

void main()
{
float vol,pie=3.14;
float r,h;

printf("ENTER THE VALUE OF RADIOUS :- ");
scanf("%f",&r);
printf("ENTER THE VALUE OF HEIGHT :- ");
scanf("%f",&h);

vol = pie * r * r * h;
printf("VOLUME OF CYLINDER IS :- %3.2f ",vol);
}

0 comments:

Post a Comment