diff --git a/du5/program.c b/du5/program.c index d36dca7..1f5a136 100644 --- a/du5/program.c +++ b/du5/program.c @@ -81,12 +81,10 @@ int main(){ } } - if(c>1){ - k--; - } + c-=(k+1); printf("Vysledky:\n"); - for(int i =0;i