Update cv3/program.c
This commit is contained in:
parent
bbd2e0f045
commit
1ab3b976a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user