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"); } }