for(;;){ check = getchar() - '0'; if(check == 1){ what(1,1,true1); }else if(check != 1) { what(1,1,false1);} }