From 310236be4b2cd4df49cded761ee01130227dc37c Mon Sep 17 00:00:00 2001 From: Marat Izmailov Date: Mon, 11 Nov 2024 13:46:59 +0000 Subject: [PATCH] Update cv7/program.c --- cv7/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index 6316aec..41a511e 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -72,8 +72,6 @@ Node* parse_rules() { void ask_question(Node *node) { if (!node) return; if (node->yes == NULL && node->no == NULL) { - printf("Expert z bufetu to vie.\n"); - printf("Pozna 2 druhov ovocia a zeleniny.\n"); printf("Koniec\n"); return; } @@ -99,6 +97,7 @@ void ask_question(Node *node) { } int main() { + // General system information only once printf("Expert z bufetu to vie.\n"); printf("Pozna 2 druhov ovocia a zeleniny.\n"); printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); @@ -112,6 +111,7 @@ int main() { int answer_count = count_answers(root); printf("Pozna %d druhov ovocia a zeleniny.\n", answer_count); + // Ask the first question ask_question(root); free_tree(root);