Initialization
This commit is contained in:
parent
b32d54791f
commit
1d489bff98
@ -31,8 +31,10 @@ int main() {
|
|||||||
x = coefs[0];
|
x = coefs[0];
|
||||||
length = count;
|
length = count;
|
||||||
|
|
||||||
for (int i = 1; i < length; i ++){
|
while (getchar() != '\n') {
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user