From afc6d068537f01c1bbb87d507adb43b813465741 Mon Sep 17 00:00:00 2001 From: Celine Khazarian Date: Thu, 8 Feb 2024 23:22:42 +0100 Subject: [PATCH] Int Modus 1 Zeichen waehlen --- src/main/c/SchereSteinPapier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/c/SchereSteinPapier.c b/src/main/c/SchereSteinPapier.c index 198ae53..15f988f 100644 --- a/src/main/c/SchereSteinPapier.c +++ b/src/main/c/SchereSteinPapier.c @@ -40,5 +40,8 @@ int Modus1() { } else { computer = '1'; + } while (you != '3' && you != '1' && you != '2') { + printf("\n\n\n\n\t\t\t\tWaehlen Sie 1 fuer Schere, 2 fuer Stein oder 3 fuer Papier: \n\t\t\t\t\t\t\t"); + scanf(" %c", &you); } } \ No newline at end of file