diff --git a/du2/program.c b/du2/program.c index 8d3ce6e..038fb07 100644 --- a/du2/program.c +++ b/du2/program.c @@ -2,20 +2,24 @@ #include #define VELKOST_POLA 52 int main(){ - int i; + int i=0; int pole[VELKOST_POLA]; - int max=0; + int max_hodnota=0; int value=0; while(i max_hodnota){ + max_hodnota = pole[i]; +} + } return 0;