From fa26c73e71f151df24b6c8fcf65db47a8bbb4d4b Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 14:45:24 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 0cb4ea4..0da7f19 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -10,7 +10,7 @@ int main() { int length = 0; double result = 0.0; - while (count < SIZE && scanf("%d", &input) == 1) { + while (count < SIZE && scanf("%lf", &input) == 1) { coefs[count] = input; count++; }