From 018c286d3a8ec47fe3193faa7f342902068ae230 Mon Sep 17 00:00:00 2001 From: ak643du Date: Tue, 5 Mar 2024 11:28:14 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 18ec73a..98387b3 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -15,8 +15,10 @@ int main() { printf("\n x input \n"); break; } - coefs[count] = input; - count++; + else { + coefs[count] = input - '0'; // Convert character to double + count++; + } } x = coefs[0];