diff --git a/cv3/program.c b/cv3/program.c index 275a890..390d684 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -17,8 +17,8 @@ int main() { length = count; - for (int i = length - 1; i > 0; i--) { - result += coefs[0]^i * coefs[i]; + for (int i = 0; i < lenght; i ++){ + result += coefs[0]^i + coefs[i]; } printf("Coefficients: ");