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