Обновить cv7/program.c
This commit is contained in:
parent
6a92936960
commit
e4c2ad52d2
@ -55,11 +55,10 @@ void ask_question(Node *node) {
|
||||
}
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
printf("%s", node->text);
|
||||
|
||||
|
||||
char answer;
|
||||
if (scanf(" %c", &answer) != 1) {
|
||||
printf("Neplatny vstup.\n");
|
||||
printf("Nerozumiem\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -68,7 +67,7 @@ void ask_question(Node *node) {
|
||||
} else if (answer == 'n') {
|
||||
ask_question(node->no);
|
||||
} else {
|
||||
printf("Neplatny vstup.\n");
|
||||
printf("Nerozumiem\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user