From 8c0021b8d02f3c33e2039097c8647ed7e0eb55dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Sun, 28 Nov 2021 20:05:57 +0100 Subject: [PATCH] prvy --- a2/program.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/a2/program.c b/a2/program.c index c1d968a..d200cac 100644 --- a/a2/program.c +++ b/a2/program.c @@ -72,7 +72,7 @@ int main(){ else if (hodnota == 2){ hej = 0; //hodnota = 0; - for (a = p; a>n; a++){ + for (a = p; a'){ //puts("nie"); @@ -125,13 +125,13 @@ int main(){ else if (hodnota == 4){ hej = 0; //hodnota = 0; - for (a = p; a>n; a++){ + for (a = p; a') { //puts("hod 4"); hej = 1; //r[a] = 'a'; p = a; - a = n -1; + a = n; } else if (r[a] == '}' || r[a] == ']' || r[a] == ')'){ //puts("nasiel");