fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int no, vx, vy;
  5.  
  6. // 数値の入力
  7. printf("数値を入力してください: ");
  8. scanf("%d", &no);
  9.  
  10. // 加算と減算
  11. vx = no + 12;
  12. vy = no - 6;
  13.  
  14. // 結果の表示
  15. printf("vx: %d\n", vx);
  16. printf("vy: %d\n", vy);
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
数値を入力してください: vx: 32778
vy: 32760