fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int res;
  6.  
  7. printf("整数を入力してください。\n");
  8.  
  9. scanf("%d",&res);
  10.  
  11. if(res == 1){
  12. printf("1が入力されました\n");
  13. printf("1を選択しました\n");
  14. }
  15.  
  16.  
  17. printf("処理を終了します。\n");
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5312KB
stdin
10
stdout
整数を入力してください。
処理を終了します。