Initialization
This commit is contained in:
parent
4d047a9925
commit
16384ed62b
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user