From 09d3c1fe2b9cdb1d2867eaa742f2e0543134c8ed Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 14:29:52 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index b0d08c7..02929d7 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -17,11 +17,11 @@ int main() { length = count; - for (int i = 0; i < length; i ++){ - result += coefs[0]*i + coefs[i]; + for (int i = 1; i < length; i ++){ + result += coefs[0]^i + coefs[i]; } - printf("\nResult: %d\n", result); + printf("Result: %d\n", result); return 0; }