From caa77174518c539bf8c67c9c766b5bd5eafb642f Mon Sep 17 00:00:00 2001 From: Viktor Daniv Date: Mon, 7 Oct 2024 12:31:16 +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 4eb5f08..b506889 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -62,7 +62,7 @@ int perform_operation(Calculator *calc, char op) { case '/': if (b == 0) { printf("division by zero\n"); - return 0; + break; } push(calc, a / b); break;