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, wa, sa, seki, shou;
  9.  
  10. READ(a)
  11. READ(b)
  12. wa = a + b;
  13. sa = a - b;
  14. seki = a * b;
  15. shou = a / b;
  16. WRITE(wa)
  17. WRITE(sa)
  18. WRITE(seki)
  19. WRITE(shou)
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0.02s 1724KB
stdin
3
2
stdout
a=b=wa=5
sa=1
seki=6
shou=1