输出:r = 20.000000
a = 1256.636000
p = 125.663600
#include<stdio.h>
int main()
{
double r,a,p;
r = 20.0;
a = 3.14159*r*r;
p = 3.14159*2*r;
printf("r = %f\na = %f\np = %f\n);
return 0;
}
输出:r = 20.000000
a = 1256.636000
p = 125.663600
#include<stdio.h>
int main()
{
double r,a,p;
r = 20.0;
a = 3.14159*r*r;
p = 3.14159*2*r;
printf("r = %f\na = %f\np = %f\n);
return 0;
}