From 7bd14359e4d6b1b3ddbce515ead1c362b2a4f1f9 Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Sun, 13 Oct 2024 15:14:38 +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 9aed552..53326d1 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -104,8 +104,8 @@ int read(struct stack *s) { break; } default: - printf("no input\n"); - exit(1); // Exit on invalid input + printf("bad input\n"); + exit(0); // Exit on invalid input } }