#include
#define PI 3.14159
void main()
{
flort r,h,V;
printf("请输入半径的值:");
scanf("%f",&r);
printf("请输入高的值:");
scanf("%f",&h);
V=r*r*PI*h;
printf("圆柱的体积为:%f.\n",V);
}
#include
int main()
{float r,h,v;
printf("r=");
scanf("%f",&r);
printf("h=");
scanf("%f",&h);
v=3.14159*r*r*h;
printf("V=%f\n",f);
return 0;
}