Update 'cv3/program.c'
This commit is contained in:
parent
3231af40ae
commit
e6a33cf6f4
@ -17,7 +17,7 @@ int main() {
|
|||||||
|
|
||||||
if (scanf("%lf", &x) != 1) {
|
if (scanf("%lf", &x) != 1) {
|
||||||
printf("Nepodarilo sa nacitat hodnotu x.\n");
|
printf("Nepodarilo sa nacitat hodnotu x.\n");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (scanf("%lf", &coef) == 1) {
|
while (scanf("%lf", &coef) == 1) {
|
||||||
@ -27,7 +27,7 @@ int main() {
|
|||||||
|
|
||||||
if (!feof(stdin)) {
|
if (!feof(stdin)) {
|
||||||
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
|
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
double result = evaluatePolynomial(x, coefficients, count);
|
double result = evaluatePolynomial(x, coefficients, count);
|
||||||
@ -35,3 +35,4 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user