Calculate the volume of a cylinder in c
#include<stdio.h>
int main()
{
int radious;
int hight;
float pi = 3.14;
printf("Enter the value of radious\n");
scanf("%d", &radious);
printf("Enter the value of hight\n");
scanf("%d", &hight);
printf("Voluem of the cylender is %f\n", pi*radious*radious*hight);
return 0;
}
Comments
Post a Comment