题解 | 牛牛的球
#include <stdio.h>
#include <math.h>
int main()
{
int r = 0;
scanf("%d", &r);
printf("%.2f\n", 4 / 3.0 * 3.14 * pow(r, 3));
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int r = 0;
scanf("%d", &r);
printf("%.2f\n", 4 / 3.0 * 3.14 * pow(r, 3));
return 0;
}
相关推荐