diff --git a/cv3/program.c b/cv3/program.c index b675d61..b26c83a 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -11,9 +11,16 @@ int main() { int length = 0; double result = 0.0; - while (scanf("%lf", &input) == 1) { + while (count < SIZE) { + if (scanf("%lf", &input) != 1) { + if (scanf("%c", &input) == 1 && input == 'x') { + printf("123\n"); + return 0; + } + break; + } + coefs[count] = input; - printf("%lf", coefs[count]); count++; }