Update cv3/program.c

This commit is contained in:
Yurii Chechur 2024-10-13 15:09:40 +00:00
parent 22889817c3
commit bbd2e0f045

View File

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