Update cv3/program.c

This commit is contained in:
Yurii Chechur 2024-10-13 15:11:49 +00:00
parent bbd2e0f045
commit 1ab3b976a6

View File

@ -92,7 +92,7 @@ int read(struct stack *s) {
case '/': case '/':
if (b == 0) { if (b == 0) {
printf("division by zero\n"); printf("division by zero\n");
exit(1); // Exit on division by zero exit(0); // Exit on division by zero
} }
result = a / b; result = a / b;
break; break;