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;