diff --git a/cv3/program.c b/cv3/program.c index 7541170..22876fb 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -11,7 +11,11 @@ int main() { int length = 0; double result = 0.0; - while (count < SIZE && scanf("%lf", &input) == 1) { + while (count < SIZE) { + if (scanf("%lf", &input) != 1) { + printf(":("); + break; + } coefs[count] = input; count++; }