From cc6216b464a24737197dbd2700a9d4fad522a4fc Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 14:25:11 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: ");