diff --git a/cv3/program.c b/cv3/program.c index 685a49f..cd8417d 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -11,6 +11,12 @@ int main() { double result = 0.0; while (count < SIZE && scanf("%lf", &input) == 1) { + if (input == 'x') + { + printf("Nepodarilo sa nacitat polynom na %d mieste.", count); + return; + } + coefs[count] = input; count++; }