From 6264462a3d4a35931f01731a714bb4cdd1032e07 Mon Sep 17 00:00:00 2001 From: Weber Date: Mon, 14 Oct 2024 12:04:21 +0000 Subject: [PATCH] test --- cv3/program.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cv3/program.c b/cv3/program.c index 3363d62..7587787 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -59,8 +59,9 @@ bool delit(KalkulackaZasobnik *kalkulacka) { if (vyber(kalkulacka, &a, &b)) { if (a == 0) { printf("division by zero\n"); - return false; // Delenie nulou + return false; } + return vloz(kalkulacka, b / a); } return false; @@ -122,6 +123,10 @@ int main() { if (!delit(&kalkulacka)) { return 0; } + else{ + printf("no input\n") + return 0; + } zobraz_zasobnik(&kalkulacka); break; default: