Update cv7/program.c

This commit is contained in:
Marat Izmailov 2024-11-11 13:51:51 +00:00
parent 282c3cbf6e
commit a2fc961506

View File

@ -76,8 +76,18 @@ void ask_question(Node *node) {
return; return;
} }
printf("%s\n", node->content); // Print the current question
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("%s?\n", node->content);
if (node->yes) {
printf("* %s\n", node->yes->content);
}
if (node->no) {
printf("* %s\n", node->no->content);
}
// Prompt for input
printf("\n");
printf("n\n");
char response; char response;
while (1) { while (1) {