From 4e4d7bfb2f14b65fadffa51a9f8d55d4d896f6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Vl=C4=8Dek?= Date: Wed, 15 Apr 2026 09:47:32 +0000 Subject: [PATCH] Aktualizovat du5/program.c --- du5/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du5/program.c b/du5/program.c index 7a09af1..3d79476 100644 --- a/du5/program.c +++ b/du5/program.c @@ -63,7 +63,7 @@ void goThroughTheTree(int rootIndex) { //pomocne premeny int current = rootIndex; - char input; + char input = '0'; // '0' = ako keby nic / NULL while (current != -1) { @@ -87,7 +87,7 @@ void goThroughTheTree(int rootIndex) { current = tree[current].no; } - else + else if (input == '0') { printf("Nerozumiem\n"); return;