From 311dd35e8beec3d7b33be45c187b09dbd6501a2d Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Wed, 9 Mar 2022 08:09:57 +0000 Subject: [PATCH] Update 'du2/program.c' --- du2/program.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/du2/program.c b/du2/program.c index 53f4063..c8ed14e 100644 --- a/du2/program.c +++ b/du2/program.c @@ -7,10 +7,9 @@ int main(){ int value = 0; memset(pole,0,VELKOST_POLA * sizeof(int)); int r = scanf("%d",&value); - for(r<=value){ - + for(value=>r){ r++; - i++ + i++; } printf("Úspešne som načítal hodnotu %d\n",i); // int pole[VELKOST_POLA];