fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a;
  5. int b;
  6. a=9;
  7. b=2;
  8. printf("a = %d\n",a);
  9. printf("b = %d\n",b);
  10. printf("%d + %d = %d\n", a,b,(a+b));
  11. printf("%d + %d = %d\n", a,b,(a-b));
  12. printf("%d + %d = %d\n", a,b,(a*b));
  13. printf("%d + %d = %d\n", a,b,(a/b));
  14. return 0;
  15. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
a = 9
b = 2
9 + 2 = 11
9 + 2 = 7
9 + 2 = 18
9 + 2 = 4