diff --git a/du2/program.c b/du2/program.c index 4bbfac0..270fbcc 100644 --- a/du2/program.c +++ b/du2/program.c @@ -7,7 +7,7 @@ int main() int i = 0, max_hodnota = 0, value = 0; - while(value >= 0 || i <= 49 || value != EOF){ + while(value >= 0 && i <= 49 && value != EOF){ int r = scanf("%d",&value); if(value <= -1){