From c0345647f3833c10e648202c0748b5c7e08b1fe5 Mon Sep 17 00:00:00 2001 From: ak643du Date: Tue, 5 Mar 2024 10:54:05 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++; }