From bd9e81973a6ccb5b1263aaece7e6e81319dc9262 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 7 Mar 2024 13:02:18 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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++; }