From 95f0d8c2b285085d4dfe1f8085882cfa7ff3242c Mon Sep 17 00:00:00 2001 From: Habib Date: Wed, 7 Feb 2024 17:27:06 +0100 Subject: [PATCH] refactoring: einen Variablennamen verbessert --- src/c/funktionen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 161791b..2b1b5a8 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -9,12 +9,12 @@ void welcome() { } int choose_program() { - int i; + int choice; printf("Welches der folgenden Programme moechtest du starten?\n1. Rechner.exe\n2. Gleichungen.exe\n3. TicTacToe.exe\n\n"); - scanf("%d", &i); + scanf("%d", &choice); - return i; + return choice; } int addThreeNumbers(int num1, int num2, int num3) {