schema
This commit is contained in:
parent
5619d453a3
commit
c2421587e8
@ -8,7 +8,7 @@
|
|||||||
bool IsValidNumber(const char *line) {
|
bool IsValidNumber(const char *line) {
|
||||||
char *endFtr;
|
char *endFtr;
|
||||||
strtod(line, &endFtr);
|
strtod(line, &endFtr);
|
||||||
if (endPtr == line){
|
if (endFtr == line){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,7 +37,8 @@ int main() {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = result * x + coeffiecientIndex;
|
result = result * x;
|
||||||
|
coefficientIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Vysledok je: %.2f\n", result);
|
printf("Vysledok je: %.2f\n", result);
|
||||||
|
Loading…
Reference in New Issue
Block a user