diff --git a/a1/program.c b/a1/program.c index ad824db..ed2774d 100644 --- a/a1/program.c +++ b/a1/program.c @@ -14,7 +14,10 @@ int main() return 0; } long double r =0; - while((r=scanf("%Lf",&value)!=EOF)&&r==1){ + while((r=scanf("%Lf",&value)!=EOF)){ + if(r!=1){ + break; + } arr[count]=value; count++; }