diff --git a/du2/program.c b/du2/program.c index 819886d..8a03c45 100644 --- a/du2/program.c +++ b/du2/program.c @@ -14,7 +14,7 @@ int main(){ int idx=0; while (1){ int r=scanf("%d",&value); - if(r!=1||idx==VELKOST_POLA||pole[idx]<0){ + if(r!=1 || idx==VELKOST_POLA || value < 0){ break; } pole[idx]=value;