From 30bef65beb7dd9654da7579a380a1c55ec537029 Mon Sep 17 00:00:00 2001 From: Deinerovych Date: Wed, 6 Nov 2024 10:12:28 +0100 Subject: [PATCH] 8 --- cv7/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);