8
This commit is contained in:
parent
e7574f64e9
commit
30bef65beb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user