#include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
float pi = 3.1415926;
scanf("%d", &n);
while (n--)
{
float m;
scanf("%f", &m);
float S = pi*m*m / 3;
printf("%.2f\n", S);
}
system("pause");
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n;
float pi = 3.1415926;
scanf("%d", &n);
while (n--)
{
float m;
scanf("%f", &m);
float S = pi*m*m / 3;
printf("%.2f\n", S);
}
system("pause");
return 0;
}
转载于:https://www.cnblogs.com/minTTremor/p/9122730.html