#include double cylinder(double r,double h); int main (void) { double h,r,v; scanf("%lf%lf",&r,&h); v=cylinder(r,h); printf("%.3f\n",v); return 0; } double cylinder(double r,double h) { double result; result=3.1415926*r*r*h; return result; }
|
|