diff --git a/cv3/program.c b/cv3/program.c index 5245c28..59592cf 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -11,15 +11,7 @@ int main() { int length = 0; double result = 0.0; - while (count < SIZE) { - if (scanf("%lf", &input) != 1 && input != '\n') { - if (input != EOF && input != '\n'){ - printf("123"); - return 0; - } - - break; - } + while (scanf("%lf", &input) == 1) { coefs[count] = input; count++;