求编写一个c语言程序求大佬
我用的是在线编译,程序就是这样:
#include<stdio.h>
#include<stdlib.h>
#define pi 3.14159265
int main()
{
double r,c,s;
scanf("%lf",&r);
c = 2*pi*r;
s = pi*r*r;
printf("圆周长:%.2lf\n",c);
printf("圆面积:%.2lf\n",s);
return 0;
}
温馨提示:答案为网友推荐,仅供参考
第1个回答 2018-03-28