From a2fc961506f59f2598223d421e913640b6515641 Mon Sep 17 00:00:00 2001 From: Marat Izmailov Date: Mon, 11 Nov 2024 13:51:51 +0000 Subject: [PATCH] Update cv7/program.c --- cv7/program.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cv7/program.c b/cv7/program.c index 1691ee3..ebc839d 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -76,8 +76,18 @@ void ask_question(Node *node) { return; } - printf("%s\n", node->content); - printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); + // Print the current question + 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; while (1) {