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