This commit is contained in:
Deinerovych 2024-11-06 10:12:28 +01:00
parent e7574f64e9
commit 30bef65beb

View File

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