Update cv7/program.c

This commit is contained in:
Marat Izmailov 2024-11-13 21:22:03 +00:00
parent 04b91e7d5d
commit 2b8352f725

View File

@ -71,7 +71,7 @@ Node* parse_rules() {
void ask_question(Node *node) {
if (!node) return;
if (node->yes == NULL && node->no == NULL) {
printf("*%s\n", node->content);
printf("* %s\n", node->content);
printf("Koniec\n");
return;
}
@ -89,8 +89,7 @@ void ask_question(Node *node) {
ask_question(node->no);
break;
} else {
printf("Neplatna odpoved, koniec.\n");
break;
printf("Nerozumiem\n");
}
}
}