fork download
  1. #include <stdio.h>
  2. #define pi 3.1416
  3. int main(void)
  4. { int r, h;
  5. float v;
  6. printf("Volume of Cylinder \n");
  7. printf("Radius = "); scanf ("%d",&r);
  8. printf("Height = "); scanf ("%d",&h);
  9. v = pi*r*r*h;
  10. printf("Volume = %3.2f \n", v);
  11. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Volume of Cylinder 
Radius = Height = Volume = 95812028430877221453824.00