Initialization

This commit is contained in:
Kozar 2024-03-04 14:28:23 +01:00
parent 4d047a9925
commit 16384ed62b

View File

@ -18,13 +18,9 @@ int main() {
length = count; length = count;
for (int i = 0; i < length; i ++){ 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); printf("\nResult: %d\n", result);
return 0; return 0;