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