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