diff --git a/du6/program.c b/du6/program.c index fd0e0a7..0eabc9e 100644 --- a/du6/program.c +++ b/du6/program.c @@ -71,15 +71,14 @@ int count_leaves(struct tree* node) { void run_system(struct tree* node) { + printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); while (node) { - printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n"); printf("%s\n", node->value); //виводимо питання чи відповідь if (!node->left && !node->right) { printf("Koniec\n"); return; } - char c; if (scanf(" %c", &c) != 1) {