From e4c2ad52d2f82089e4f66001373df55d8b35981e Mon Sep 17 00:00:00 2001 From: Yevhen Kozirovskyi Date: Fri, 15 Nov 2024 04:06:10 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20cv7/program.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv7/program.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index 8f404f2..6d3ccf3 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -55,11 +55,10 @@ void ask_question(Node *node) { } printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("%s", node->text); - char answer; if (scanf(" %c", &answer) != 1) { - printf("Neplatny vstup.\n"); + printf("Nerozumiem\n"); return; } @@ -68,7 +67,7 @@ void ask_question(Node *node) { } else if (answer == 'n') { ask_question(node->no); } else { - printf("Neplatny vstup.\n"); + printf("Nerozumiem\n"); } }