From a6a40f7fe60427003d1188ff2c259ebee3a04c92 Mon Sep 17 00:00:00 2001 From: Weber Date: Mon, 14 Oct 2024 12:52:36 +0000 Subject: [PATCH] test --- cv3/program.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cv3/program.c b/cv3/program.c index eb6ba69..845f629 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -98,6 +98,7 @@ int main() { zobraz_zasobnik(&kalkulacka); } else { printf("no input\n"); + return 0; } break; case '-': @@ -105,6 +106,7 @@ int main() { zobraz_zasobnik(&kalkulacka); } else { printf("no input\n"); + return 0; } break; case '*': @@ -112,6 +114,7 @@ int main() { zobraz_zasobnik(&kalkulacka); } else { printf("no input\n"); + return 0; } break; case '/': { @@ -119,12 +122,16 @@ int main() { if (vyber(&kalkulacka, &a, &b)) { if (a == 0) { printf("division by zero\n"); + return 0; } else { vloz(&kalkulacka, b / a); zobraz_zasobnik(&kalkulacka); + printf("no input\n"); + return 0; } } else { printf("no input\n"); + return 0; } break; }