From 62b5936b835f624f39babe9895361a967f2f66fe Mon Sep 17 00:00:00 2001 From: Bohdana Marchenko Date: Thu, 6 Mar 2025 11:01:43 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20du2/program.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du2/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/du2/program.c b/du2/program.c index f81804b..54614db 100644 --- a/du2/program.c +++ b/du2/program.c @@ -34,15 +34,15 @@ int main() { double coef; double result = 0; - int coef_count = 0; + int coef_count = 2; while (1) { - int status = read_double(&coef, coef_count + 2); + int status = read_double(&coef, coef_count); if (status == -1) { return 0; } if (status == 0) { - if (coef_count == 0) { + if (coef_count == 2) { return 1; } break;