From 276b7f7ea11eb6052755b1e146c01bc98ee86f79 Mon Sep 17 00:00:00 2001 From: Yevhen Kozirovskyi Date: Thu, 17 Oct 2024 16:46:52 +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=20cv3/program.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv3/program.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 31e5b27..ac87fc0 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -94,9 +94,11 @@ int main() { printf("no input\n"); exit(1); } + double a = pop(&stek); if (b == 0) { printf("division by zero\n"); + return 0; exit(1); } push(&stek, a / b); @@ -111,4 +113,4 @@ int main() { } printf("no input\n"); return 0; -} \ No newline at end of file +}