diff --git a/cv3/program.c b/cv3/program.c index 7dd2bee..685a49f 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -10,8 +10,7 @@ int main() { int length = 0; double result = 0.0; - while (count < SIZE) { - + while (count < SIZE && scanf("%lf", &input) == 1) { coefs[count] = input; count++; }