fork download
  1. #include <stdio.h>
  2.  
  3. #define READ(X) {printf(#X"="); scanf("%d",&X);}
  4. #define WRITE(X) printf(#X"=%d\n",X);
  5.  
  6. int main()
  7. {
  8. int a, b;
  9.  
  10. READ(a)
  11. READ(b)
  12. WRITE(a + b)
  13. WRITE(a - b)
  14. WRITE(a * b)
  15. WRITE(a / b)
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 1680KB
stdin
3
2
stdout
a=b=a + b=5
a - b=1
a * b=6
a / b=1