摘要:
#include#define PI 3.14//对圆周率进行赋值int main(){ int i,n; double r,v,h; double cylinder(double r,double h);//调用一个函数 printf("enter n:"); scanf("%d",&n); for(i=1;i#define PI 3.14int main(){ float r,s; printf("Enter r:"); scanf("%f",&r); s=PI*r*r; if(r<=0) 阅读全文