From 16384ed62bf61862b9ee5467fb326713a3f9a4f4 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 14:28:23 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 87911ce..b0d08c7 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -18,13 +18,9 @@ int main() { length = count; for (int i = 0; i < length; i ++){ - result += coefs[0]^i + coefs[i]; + result += coefs[0]*i + coefs[i]; } - printf("Coefficients: "); - for (int i = 0; i < count; i++) { - printf("%d ", coefs[i]); - } printf("\nResult: %d\n", result); return 0;