diff --git a/a4/program b/a4/program index aac2250..c00ea40 100755 Binary files a/a4/program and b/a4/program differ diff --git a/a4/program.c b/a4/program.c index 615b865..84f96ef 100644 --- a/a4/program.c +++ b/a4/program.c @@ -48,10 +48,18 @@ int main(){ } printf("\n"); - - for (int j = 0; j < i; j++) + int count = 0; + for (int j = 0; j < i-1; j++) { - printf("%d, ",inputNum[vypis[j]]); + if (j<=(i)/2) + { + for (int k = 0; k < count; k++) + { + printf(" "); + } + count++; + } + printf("%d\n",inputNum[vypis[j]]); } return 0;