diff --git a/cv3/program.c b/cv3/program.c index 6c10487..be7c2d9 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -81,8 +81,8 @@ int read(struct stack *s) { case '*': case '/': { if (s->size < 2) { - printf("no input\n"); - return 1; // Continue to next iteration + printf("not enough operands\n"); + exit(0); // Continue to next iteration } float b = pop_stack(s);