diff --git a/du2/program.c b/du2/program.c index f1755ad..ecb7548 100644 --- a/du2/program.c +++ b/du2/program.c @@ -20,7 +20,7 @@ int main(){ } pole[idx]=value; if (pole[idx] > max_hodnota){ - max_hodnota = pole[i]; + max_hodnota = pole[idx]; } idx++; value++;