不知你要用那种语言编写,我就用C语言吧.
#include
void main(){
float r,h;
double cl,cs,cvz;
printf("输入半径r:");
scanf("%f",&r);
printf("n输入高度h:");
scanf("%f",&h);
cl=3.14*2*r;
cs=3.14*r*r;
cvz=cs*h;
printf("圆的周长cl=%0.2lf",cl);
printf("n圆的面积cs=%0.2lf",cs);
printf("n圆柱的体积cvz=%0.2lf",cvz);
}