#define p1 3.1415926
#include <stdio.h>
#include <math.h>
int main()
{
double r=3.67,c,s,v;
c=2*p1*r;
s=p1*pow(r,2);
v=4.0/3.0*p1*pow(r,3);
printf("s=%f\nc=%f\nv=%f\n",s,c,v);
return 0;
}
求圆周长面积
最新推荐文章于 2019-11-07 15:12:55 发布