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;