Update cv7/program.c

This commit is contained in:
Marat Izmailov 2024-11-11 13:49:42 +00:00
parent 310236be4b
commit 282c3cbf6e

View File

@ -99,8 +99,6 @@ void ask_question(Node *node) {
int main() {
// General system information only once
printf("Expert z bufetu to vie.\n");
printf("Pozna 2 druhov ovocia a zeleniny.\n");
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
Node *root = parse_rules();
if (!root) {
@ -112,6 +110,7 @@ int main() {
printf("Pozna %d druhov ovocia a zeleniny.\n", answer_count);
// Ask the first question
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
ask_question(root);
free_tree(root);