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; }