From ab717d9b3642014183104fb9f36d55ca10ae1505 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 13:09:40 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 176b876..63deaea 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -12,13 +12,13 @@ int main() { double result = 0.0; while (scanf("%lf", &input) == 1) { - if (input == 'x') { - printf("Exiting program.\n"); - return 0; - } coefs[count] = input; count++; } + if (input == 'x') { + printf("Exiting program.\n"); + return 0; + } x = coefs[0]; length = count;