From 21675c33612fd4d6d26aff7749e15cbcc361cc78 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Wed, 9 Mar 2022 08:26:32 +0000 Subject: [PATCH] Update 'du2/program.c' --- du2/program.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/du2/program.c b/du2/program.c index 5e58ec1..72e20e8 100644 --- a/du2/program.c +++ b/du2/program.c @@ -3,5 +3,17 @@ #define VELKOST_POLA 52 int main(){ + int vysledky[VELKOST_POLA]; + int pocet; + int max=0; + int i=0; + memset(pole,0,VELKOST_POLA * sizeof(int)); + for(){ + if (pole[i] > max){ + max = pole[i]; + } + printf("Súťažiaci č.", 1 ,"vypil", 1 ,"pohárov.") + } + printf("Výherca je súťažiaci", 5 ,"ktorý vypil", 5 ,"pohárov.") return 0; } \ No newline at end of file