Обновить cv7/program.c

This commit is contained in:
Yevhen Kozirovskyi 2024-11-15 03:56:21 +00:00
parent 652c38ec61
commit 7314d2bbdb

View File

@ -49,13 +49,13 @@ int count_items(Node *node) {
void ask_question(Node *node) { void ask_question(Node *node) {
if (node == NULL) return; if (node == NULL) return;
printf("%s", node->text);
if (node->text[0] == '*') { if (node->text[0] == '*') {
printf("Expert z bufetu to vie.\n"); printf("Expert z bufetu to vie.\n");
printf("%s", node->text);
return; return;
} }
printf("%s", node->text);
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
char answer; char answer;