diff --git a/a4/program.c b/a4/program.c index 6204615..58d4e4b 100644 --- a/a4/program.c +++ b/a4/program.c @@ -82,7 +82,10 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){ else{ count = ownPow(2,size-i-1)/2; counter = 0; - space--; + if (space > 1) + { + space--; + } } }