fork download
  1. #include <stdio.h>
  2. // Ludovica Zannier 1SC
  3. // Programma per il calcolo del volume del cilindro
  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.  
Success #stdin #stdout 0s 5268KB
stdin
5 3
stdout
Volume = 78.500000