From 58a91c27663722c38db67e4b8c714888c4725af9 Mon Sep 17 00:00:00 2001 From: Christian Reum Date: Mon, 5 Feb 2024 18:29:20 +0100 Subject: [PATCH] =?UTF-8?q?refactoring=203:=20Ausgabe=20in=20for-Schleife?= =?UTF-8?q?=20versetzt=20und=20=20Variable=20au=C3=9Ferhalb=20Funktion=20i?= =?UTF-8?q?nitialisiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wwm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wwm.c b/src/wwm.c index f57d93f..a8a0091 100644 --- a/src/wwm.c +++ b/src/wwm.c @@ -6,6 +6,7 @@ int runde = 0; int geld = 0; int frage = 0; +int useranswer; void wwm(){ printf("Welcome to ´Who wants to be a millionaire?´ \n"); @@ -33,6 +34,7 @@ void wwm(){ for (r = 1; r <= 15; r++){ + printf("You are at stage %d and have %d $\n", runde, geld); srand(time(0)); int frage = rand() % 5; printf("Question %d: %s\n", runde + 1, question[frage]);