diff --git a/src/main/c/Quiz/Quiz_2.c b/src/main/c/Quiz/Quiz_2.c index f78b26e..0777a51 100644 --- a/src/main/c/Quiz/Quiz_2.c +++ b/src/main/c/Quiz/Quiz_2.c @@ -10,6 +10,14 @@ int quiz_2() while (guess != secretNumber && outOfGuesses == 0) { + if(guessCount < guessLimit) + { + printf("Enter a number: "); + scanf("%d",&guess); + guessCount++; + } else { + outOfGuesses = 1; + } } if (outOfGuesses == 1) {