From c2421587e80382faed171a3b76008d2be5404770 Mon Sep 17 00:00:00 2001 From: VIliam Date: Tue, 27 Feb 2024 10:14:54 +0100 Subject: [PATCH] schema --- cv3/program.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 03db213..933027d 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -8,7 +8,7 @@ bool IsValidNumber(const char *line) { char *endFtr; strtod(line, &endFtr); - if (endPtr == line){ + if (endFtr == line){ return false; } } @@ -37,7 +37,8 @@ int main() { return 1; } - result = result * x + coeffiecientIndex; + result = result * x; + coefficientIndex++; } printf("Vysledok je: %.2f\n", result);