fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a = 5, b = 7, c, d;
  5.  
  6. // clrscr() is not part of standard C; it's from conio.h and mostly used in Turbo C.
  7. // You can remove it or include <conio.h> if you're using an old compiler.
  8. // clrscr();
  9.  
  10. c = a + b;
  11. d = b - a;
  12.  
  13. printf("Sum = %d and Subtraction = %d\n", c, d);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Sum = 12 and Subtraction = 2