fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("The C Subtract/Divide Program.\n");
  5. int a = 100;
  6. int b = 50;
  7. int c = (a - b);
  8. printf("A %-3i B %-3i C %-3i\n", a, b, c);
  9. int d = 2500;
  10. int e = 50;
  11. int f = (d / e);
  12. printf("D %-4i E %-3i F %-3i\n", d, e, f);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5288KB
stdin
1
2
10
42
11
stdout
The C Subtract/Divide Program.
A  100  B  50   C  50 
D  2500  E  50   F  50