计算圆的周长和面积
#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;
}
The desire of his soul is the prophecy of his fate
你灵魂的欲望,是你命运的先知。

浙公网安备 33010602011771号