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