From 1ab3b976a60c0a14c9886a94e967736eaa12db0c Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Sun, 13 Oct 2024 15:11:49 +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 93d0267..9aed552 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -92,7 +92,7 @@ int read(struct stack *s) { case '/': if (b == 0) { printf("division by zero\n"); - exit(1); // Exit on division by zero + exit(0); // Exit on division by zero } result = a / b; break;