fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b,c;
  5. a = 2; // 値を直接代入する
  6. b = 5;
  7. c = a+b; // 計算結果を代入する
  8. printf("c=%d\n",c);
  9. c = c-a;
  10. a = 2*a+b-c;
  11. printf("a=%d\n",a);
  12. return 0;
  13. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
c=7
a=4