From 59714107cb75a51a75f97e0e5998a0775a4370b7 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Wed, 9 Mar 2022 08:13:06 +0000 Subject: [PATCH] Update 'du2/program.c' --- du2/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/du2/program.c b/du2/program.c index e206583..6f20d0a 100644 --- a/du2/program.c +++ b/du2/program.c @@ -8,9 +8,10 @@ int main(){ int vysledky[VELKOST_POLA]; memset(pole,0,VELKOST_POLA * sizeof(int)); int r = scanf("%d",&value); - for(value=>r){ + for(value>=r){ r++; i++; + vysledky++; } printf("Úspešne som načítal hodnotu %d\n",i); // int pole[VELKOST_POLA];