From 073f22bdb6e0114cebcd9caaa492e0ea9f16d8cf Mon Sep 17 00:00:00 2001 From: nk365yf Date: Thu, 16 Oct 2025 21:25:12 +0200 Subject: [PATCH] fix5 --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 0ff6c20..ec82522 100644 --- a/du3/program.c +++ b/du3/program.c @@ -72,7 +72,7 @@ int main(){ if (input[0]=='-') result=a-b; if (input[0]=='*') result=a*b; if (input[0]=='/'){ - if (b==0) {printf("division by zero");return 1;} + if (b==0) {printf("division by zero");return 0;} result=a/b; } push(&mystack, result);