diff --git a/a4/program.c b/a4/program.c index 5c91ef4..b030f03 100644 --- a/a4/program.c +++ b/a4/program.c @@ -73,9 +73,17 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){ } else if (counter>=count && i>(size/2) || vypis[i]input[vypis[i-1]]) + { + count = ownPow(2,i)/2; + counter = 0; + space++; + } + else{ count = ownPow(2,size-i-1)/2; counter = 0; space--; + } } counter++;