From 5b6b36cfb7870b227ad0ad7c824b3cd0e9f05188 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 12:41:52 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 54fb920..e0c6007 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -13,8 +13,9 @@ int main() { while (count < SIZE) { if (scanf("%lf", &input) != 1 && input != '\n') { - break; + return 0; } + coefs[count] = input; count++; }