From 3e2f9826e2732e1d86537cd630c9f2163a6f00a2 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 12:59:24 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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++;