#include <stdio.h>
#include <stdlib.h>
int main()
{
int r, h;
double PI, l, s1, s2, v;
PI = 3.1415926;
scanf("%d %d", &r, &h);
l = PI * r * 2;
s1 = PI * r * r;
s2 = l * h;
v = h * s1;
printf("%.2lf %.2lf %.2lf %.2lf", l, s1, s2, v);
return 0;
}
相关文章: