Browse Source

refactoring 6: Ausgabe Eingabe Nummern und entfernen unnötiger srand

remotes/origin/Christian
Christian Reum 11 months ago
parent
commit
90fb709f37
  1. 2
      src/wwm.c

2
src/wwm.c

@ -27,6 +27,7 @@ int crandomNumber() {
void wwm(){
printf("Welcome to ´Who wants to be a millionaire?´ \n");
printf("Choose your answer with the numbers 1-4! \n");
const char* question[] = {
"Which planet is known as the `blue planet`?",
@ -68,7 +69,6 @@ void wwm(){
printf("__________________________________________________ \n\n");
printf("You are at stage %d and have %d $\n", runde, geld);
srand(time(0));
crandomNumber();
printf("Question %d: %s\n", runde + 1, question[frage]);

Loading…
Cancel
Save