From 3f55bc676ea0012866614f3168525208045c6e5b Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Sun, 13 Oct 2024 15:18:28 +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 739d6a7..53326d1 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -52,7 +52,7 @@ int read(struct stack *s) { // Check for empty input if (strcmp(temp, "\n") == 0) { - printf("bad input\n"); + printf("no input\n"); exit(1); // Exit on empty input } @@ -99,7 +99,7 @@ int read(struct stack *s) { } push_stack(s, result); // Push the result back onto the stack print_stack(s); // Print the stack after operation - printf("bad input\n"); // Print the "no input" message + printf("no input\n"); // Print the "no input" message exit(0); // Exit the program after the operation break; }