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];