This commit is contained in:
Deinerovych 2024-11-06 10:05:45 +01:00
parent 21c800482f
commit 7bd6f0c84f

View File

@ -50,7 +50,9 @@ int count_products(Node *node) {
void run_expert_system(Node *node) { void run_expert_system(Node *node) {
while (node) { while (node) {
if (!node->yes && !node->no) { if (!node->yes && !node->no) {
printf("Expert z bufetu to vie: %s.\n", node->text); printf("Expert z bufetu to vie.\n");
printf("*%s\n", node->text);
printf("Koniec\n");
return; return;
} }
printf("%s\n", node->text); printf("%s\n", node->text);