From 9a492ea9a4f5d9c970a132588a9bc83b080956b3 Mon Sep 17 00:00:00 2001 From: ak643du Date: Tue, 5 Mar 2024 11:02:57 +0100 Subject: [PATCH] Initialization --- cv3/program.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cv3/program.c b/cv3/program.c index 685a49f..98d0485 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -11,6 +11,9 @@ int main() { double result = 0.0; while (count < SIZE && scanf("%lf", &input) == 1) { + if (input == x) { + return 0; + } coefs[count] = input; count++; }