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.  
  14. printf("処理を終了します。\n");
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5328KB
stdin
10
stdout
整数を入力してください。
処理を終了します。