diff --git a/cv7/program.c b/cv7/program.c index eb7ba1e..d985f0b 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -48,8 +48,6 @@ int count_products(Node *node) { } void run_expert_system(Node *node) { - printf("Expert z bufetu to vie.\n"); - while (node) { if (!node->yes && !node->no) { printf("*%s\n", node->text); @@ -110,6 +108,7 @@ int main() { return 1; } + printf("Expert z bufetu to vie.\n"); // Выводим сообщение перед подсчетом int product_count = count_products(root); printf("Pozna %d druhov ovocia a zeleniny.\n", product_count);