diff --git a/cv3/program.c b/cv3/program.c index 98d0485..5d464fa 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -22,11 +22,13 @@ int main() { length = count; - for (int i = 1; i < length; i ++){ - result = result * x + coefs[i]; + result = coefs[0]; + + for (int i = 1; i < length; i ++) { + result = result * x + coefs[i]; } printf("Vysledok je: %.2lf\n", result); return 0; -} \ No newline at end of file +}