fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. double r,h,v;
  6. printf("请输入圆柱体底面圆的半径%f请输入圆柱体的高%f",r,h);
  7. v=3.14*r*r*h;
  8. printf("圆柱体的体积为%f",v);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5312KB
stdin
1.5 3
stdout
请输入圆柱体底面圆的半径0.000000请输入圆柱体的高0.000000圆柱体的体积为0.000000