int select_number(){
printf("\n");
int secretNumber = 10, numberGuessed = 0;
while(1){
printf("Guess My Secret Number: ");
scanf(" %d", &numberGuessed);
if(numberGuessed == secretNumber){
printf("You Got It\n");
break;
}
}
}
void main(void){
select_number();
}
댓글 없음:
댓글 쓰기