Update 'cv3/program.c'
This commit is contained in:
parent
e6a33cf6f4
commit
5fe30441cf
@ -16,15 +16,14 @@ int main() {
|
||||
int count = 0;
|
||||
|
||||
if (scanf("%lf", &x) != 1) {
|
||||
printf("Nepodarilo sa nacitat hodnotu x.\n");
|
||||
printf("Nepodarilo sa nacitat zaklad x\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
while (scanf("%lf", &coef) == 1) {
|
||||
coefficients[count++] = coef;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!feof(stdin)) {
|
||||
printf("Nepodarilo sa nacitat polynom na %d mieste.\n", count + 1);
|
||||
return 0;
|
||||
@ -35,4 +34,3 @@ int main() {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user