diff --git a/cv3/program.c b/cv3/program.c index 59592cf..176b876 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -12,7 +12,10 @@ int main() { double result = 0.0; while (scanf("%lf", &input) == 1) { - + if (input == 'x') { + printf("Exiting program.\n"); + return 0; + } coefs[count] = input; count++; }