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;