From 66c28617aa0ad23d1535f21426cdf099f35dd775 Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Mon, 14 Oct 2024 11:01:36 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index fc3b8f1..6bb0d5f 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -91,7 +91,7 @@ int read(struct stack *s) { case '/': if (b == 0) { printf("division by zero\n"); - return 1; + exit(0); } result = a / b; break;