Browse Source

Int Modus 2 Mensch 1 Zahl waehlen

remotes/origin/Celine
Celine Khazarian 11 months ago
parent
commit
e33333fc5a
  1. 10
      src/main/c/SchereSteinPapier.c

10
src/main/c/SchereSteinPapier.c

@ -84,4 +84,14 @@ int Modus2() {
scanf("%s", Mensch1); scanf("%s", Mensch1);
printf("\n\t\t\t\tName Mensch 2: "); printf("\n\t\t\t\tName Mensch 2: ");
scanf("%s", Mensch2); scanf("%s", Mensch2);
char wahl1 = '0', wahl2 = '0';
while (wahl1 != '3' && wahl1 != '1' && wahl1 != '2') {
printf("\n\t\t\t\t%s, waehlen Sie 1 fuer Schere, 2 fuer Stein oder 3 fuer Papier: ", Mensch1);
scanf(" %c", &wahl1);
}
#ifdef _WIN32
system("cls");
#else
system("clear");
#endif
} }
Loading…
Cancel
Save