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