Initialization
This commit is contained in:
parent
9a492ea9a4
commit
32c42e2558
@ -22,11 +22,13 @@ int main() {
|
|||||||
|
|
||||||
length = count;
|
length = count;
|
||||||
|
|
||||||
for (int i = 1; i < length; i ++){
|
result = coefs[0];
|
||||||
result = result * x + coefs[i];
|
|
||||||
|
for (int i = 1; i < length; i ++) {
|
||||||
|
result = result * x + coefs[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Vysledok je: %.2lf\n", result);
|
printf("Vysledok je: %.2lf\n", result);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user