fork download
  1. #include <stdio.h>
  2. // Viola Moschella 1SC
  3. // Programma per il calcolo del volume del cerchio
  4. int main(void) {float r, h, Volume; // definizione delle variabili
  5. // your code goes here
  6. scanf("%f %f",&r,&h); // lettura delle variabili r= raggio h= altezza
  7. Volume=(3.14*r*r*h)/3;
  8. printf("Volume = %f",Volume);
  9. return 0;
  10. }
  11.  
  12.  
  13.  
Success #stdin #stdout 0s 5280KB
stdin
3 8
stdout
Volume = 75.360001