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