This commit is contained in:
Džubara 2024-02-27 10:14:54 +01:00
parent 5619d453a3
commit c2421587e8

View File

@ -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);