From 54f144445766107012fa92e0442ae6b9a3694a0d Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Mon, 14 Oct 2024 11:07:50 +0000 Subject: [PATCH] Update cv3/program.c --- cv3/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);