#include<stdio.h>
int main()
{
double r;
printf("Input r:");
scanf("%lf",&r);
printf("周长 =%f\n",2*3.14159*r);
printf("面积 = %f\n",3.14159*r*r);
return 0;
}
#include<stdio.h>
int main()
{
double r;
printf("Input r:");
scanf("%lf",&r);
printf("周长 =%f\n",2*3.14159*r);
printf("面积 = %f\n",3.14159*r*r);
return 0;
}