From d93f8b4323910ee7a553824cebb6347edf169f77 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Wed, 9 Mar 2022 08:21:55 +0000 Subject: [PATCH] Update 'du2/program.c' --- du2/program.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/du2/program.c b/du2/program.c index 6f20d0a..83a132a 100644 --- a/du2/program.c +++ b/du2/program.c @@ -3,17 +3,16 @@ #define VELKOST_POLA 52 int main(){ - int i=1; - int value = 0; int vysledky[VELKOST_POLA]; - memset(pole,0,VELKOST_POLA * sizeof(int)); - int r = scanf("%d",&value); - for(value>=r){ - r++; - i++; - vysledky++; + int pocet; + int max=0; + int i=0; + for() + + if (pole[i] > max){ + max = pole[i]; + } + printf("Počet súťažiacich:\n",,"Počet vypitích drinkov:\n"pole[i]) } - printf("Úspešne som načítal hodnotu %d\n",i); - // int pole[VELKOST_POLA]; return 0; } \ No newline at end of file