|
@ -22,7 +22,10 @@ int crandomNumber() { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int ceingabe() { |
|
|
|
|
|
scanf("%d", &useranswer); |
|
|
|
|
|
return useranswer; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
void wwm(){ |
|
|
void wwm(){ |
|
|
|
|
|
|
|
@ -74,10 +77,9 @@ void wwm(){ |
|
|
|
|
|
|
|
|
for (int i = 0; i < 4; i++) { |
|
|
for (int i = 0; i < 4; i++) { |
|
|
printf("%d. %s \n", i + 1, answers[frage][i]); |
|
|
printf("%d. %s \n", i + 1, answers[frage][i]); |
|
|
|
|
|
|
|
|
int useranswer; |
|
|
|
|
|
|
|
|
} |
|
|
printf("Your answer (1-4):"); |
|
|
printf("Your answer (1-4):"); |
|
|
scanf("%d", &useranswer); |
|
|
|
|
|
|
|
|
ceingabe(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (useranswer == correctAnswer[frage]) { |
|
|
if (useranswer == correctAnswer[frage]) { |
|
@ -86,9 +88,8 @@ void wwm(){ |
|
|
setGeld(runde); |
|
|
setGeld(runde); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
printf("What a shame! That is wrong!\n You lost %d $", geld); |
|
|
|
|
|
|
|
|
printf("That is a shame! That is wrong!\n You lost %d $", geld); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|