From 37cee1e6f2d4f9924c6ccddd26d9ce6611ede4c1 Mon Sep 17 00:00:00 2001 From: ak643du Date: Tue, 5 Mar 2024 11:42:55 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 10995b9..860b66d 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -10,14 +10,9 @@ int main() { int count = 0; int length = 0; double result = 0.0; - double ivrt = 0; while (count < SIZE && scanf("%c", &input) == 1) { - ivrt = atof(input); - if (ivrt == 0.00){ - printf("String \n"); - } - coefs[count] = input; + coefs[count] = input - '0'; count++; }