Browse Source

finished Quiz 2

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
b5bff3fcbe
  1. 8
      src/main/c/Quiz/Quiz_2.c

8
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)
{

Loading…
Cancel
Save