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;