fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int no, vx, vy;
  5.  
  6. printf("整数値を入力してください: ");
  7. scanf("%d", &no);
  8.  
  9. printf("あなたは%dと入力しましたね。",no);
  10.  
  11. vx = no + 12;
  12. vy = no - 6;
  13.  
  14. printf("vxの値は%dです。: %d\n", vx);
  15. printf("vyの値は%dです。: %d\n", vy);
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5236KB
stdin
Standard input is empty
stdout
整数値を入力してください: あなたは32764と入力しましたね。vxの値は32776です。: 0
vyの値は32758です。: 0