This commit is contained in:
Peter Petrek 2021-12-03 00:42:58 +01:00
parent ac15f5270e
commit ccbfa5c962

View File

@ -68,6 +68,7 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){
if (counter>=count && i<=(size/2))
{
count = ownPow(2,i)/2;
if (ownPow(2,i)%2){count++;}
counter = 0;
space++;
}
@ -77,7 +78,6 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){
{
count = ownPow(2,i)/2;
counter = 0;
space++;
}
else{
count = ownPow(2,size-i-1)/2;