Update cv3/program.c

This commit is contained in:
Yurii Chechur 2024-10-13 15:14:38 +00:00
parent 1ab3b976a6
commit 7bd14359e4

View File

@ -104,8 +104,8 @@ int read(struct stack *s) {
break; break;
} }
default: default:
printf("no input\n"); printf("bad input\n");
exit(1); // Exit on invalid input exit(0); // Exit on invalid input
} }
} }