Browse Source

functional 22: if Anweisung runden 6-15

remotes/origin/Christian
Christian Reum 11 months ago
parent
commit
86509e93cc
  1. 23
      src/wwm.c

23
src/wwm.c

@ -136,5 +136,28 @@ void wwm(){
return;
}
}
if (r > 5 && r <= 15) {
printf("___________________________________________________________\n\n");
printf("You are at stage %d and have %d $\n", runde + 1, geld);
crandomNumber();
printf("Question %d: %s\n", runde + 1, questions2[frage]);
for (int i = 0; i < 4; i++) {
printf("%d. %s \n", i + 1, answers2[frage][i]);
};
ceingabe();
if (useranswer == correctAnswer2[frage]) {
printf("That is correct!\n");
runde++;
setGeld(runde);
}
else {
printf("What a shame! That is wrong! \n You lost %d $ ", geld);
break;
}
}
}
}
Loading…
Cancel
Save