Browse Source

rough structure quiz

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

10
src/main/c/Quiz/Quiz_2.c

@ -8,4 +8,14 @@ int quiz_2()
int guessLimit = 3; int guessLimit = 3;
int outOfGuesses =0; int outOfGuesses =0;
while (guess != secretNumber && outOfGuesses == 0)
{
}
if (outOfGuesses == 1)
{
printf("Out of guesses");
}else {
printf("You Win!");
}
return 0;
} }
Loading…
Cancel
Save