fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a, b, c, d, e, f;
  6.  
  7. a = 15;
  8. b = 5;
  9. c = a + b;
  10. d = a - b;
  11. e = a * b;
  12. f = a / b;
  13.  
  14. printf("The sum = %d", c);
  15. printf("\nThe subtraction = %d", d);
  16. printf("\nThe multiplication = %d", e);
  17. printf("\nThe division = %d", f);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
The sum = 20
The subtraction = 10
The multiplication = 75
The division = 3