From 4fc410c322c57560e545fc32a5a2fc4ee3e45ca1 Mon Sep 17 00:00:00 2001 From: ak643du Date: Mon, 4 Mar 2024 14:35:38 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 02929d7..e97d808 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -15,10 +15,12 @@ int main() { count++; } + x = coefs[0]; + length = count; for (int i = 1; i < length; i ++){ - result += coefs[0]^i + coefs[i]; + result = result * x + coefs[i]; } printf("Result: %d\n", result);