fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. printf("The C Volume Of Sphere Program.\n");
  4. int radi = 12;
  5. float pi = 3.14;
  6. float multi = (1.33);
  7. float volume = (((multi)) * ((pi)));
  8. float volume2 = (volume) * ((radi)) * ((radi)) * ((radi));
  9. printf("RAD %-2i PI %-3f Volum %-4f\n", radi, pi, volume2);
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5284KB
stdin
1
2
10
42
11
stdout
The C Volume Of Sphere Program.
RAD  12 PI  3.140000  Volum  7216.473633