1.
Write
a C program to calculate the volume of a cylinder.
#include<stdio.h>
#include<conio.h>
int main()
{
float r, h, v;
printf("Enter
radius and height: \n");
scanf("%f
%f", &r, &h);
v=(22/7)*r*r*h;
printf("Volume
of cylinder= %.2f",v);
return 0;
}
No comments:
Post a Comment