From 3406c5864994c15949eec5a03783501f4507fa9b Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Tue, 6 Feb 2024 18:43:50 +0100 Subject: [PATCH] Commit 23 - func show_letters um else Bedingung erweitern --- src/main/c/hangman.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index edcf466..27be097 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -300,5 +300,9 @@ void show_letters(char secret_word[100], char guessed_letters[100]){ if(strchr(guessed_letters, secret_word[i])){ printf("%c ", secret_word[i]); } -} + else{ + printf("_ "); + } + } + printf("\n"); } \ No newline at end of file