计算圆的周长和面积

#include<stdio.h>
# define pi 3.14
int main()
{
float r,c,s;
printf("输入圆的半径:");
scanf("%f",&r);
c=2*pi*r;
s=pi*r*r;
printf("c=%f s=%f",c,s);
system("pause");
return 0;
}

posted @ 2021-07-17 00:14  &梦幻的白夜  阅读(128)  评论(0)    收藏  举报