From a0ccc0b00a19c5d2675e44033dab5d7a84351155 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 14:24:52 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 350806d..ac613f6 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -6,7 +6,7 @@ int main() { double coefs[SIZE] = {0.0}; double x = 0.0; double input = 0.0; - int count = 1; + int count = 0; int length = 0; double result = 0.0; @@ -15,6 +15,8 @@ int main() { return 0; } + count++; + while (count < SIZE) { if (scanf("%lf", &input) != 1) { if (scanf("%c", &input) == 1) {