From 7233a5de71d2967a56ee2d4f70f81ed04cec82bd Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 10 Mar 2022 18:50:57 +0100 Subject: [PATCH] funguje --- du2/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/du2/program.c b/du2/program.c index 8a03c45..099889b 100644 --- a/du2/program.c +++ b/du2/program.c @@ -6,6 +6,7 @@ int main(){ int value = 0; + int count = 0; int pole[VELKOST_POLA]; memset(pole,0,VELKOST_POLA*(sizeof(int))); @@ -22,11 +23,11 @@ int main(){ max_hodnota = pole[idx]; } idx++; - value++; + count++; } if (value==0){ - printf("Error\n"); + printf("Chyba: Málo platných hodnôt.\n"); return 0; }