fork download
  1. #include <stdio.h>
  2. int main(void) {
  3. printf("The C Volume Of A Cylinder Program.\n");
  4. int radi = 12;
  5. int height = 12;
  6. float pi = 3.14;
  7. float volume = (pi) * (radi) * (radi);
  8. float volume2 = (volume) * (height);
  9. printf("RADI %-2i PI %-3.2f Height %-2i\n", radi, pi, height);
  10. printf("VOLUM %-4.0f\n", volume2);
  11. return 0;
  12. }
Success #stdin #stdout 0s 5288KB
stdin
1
2
10
42
11
stdout
The C Volume Of A Cylinder Program.
RADI  12  PI  3.14  Height  12
VOLUM  5426