From 1d395a91a26955af5b7f9ab428d38b8653d63a4e Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 9 Apr 2020 23:08:22 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu5/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du5/program.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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