From 0a2b09958ae4ecab121738d15eb51eaf8c87646e Mon Sep 17 00:00:00 2001 From: Weber Date: Mon, 14 Oct 2024 12:07:57 +0000 Subject: [PATCH] test --- cv3/program.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 9ce5f17..976fafe 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -59,9 +59,8 @@ bool delit(KalkulackaZasobnik *kalkulacka) { if (vyber(kalkulacka, &a, &b)) { if (a == 0) { printf("division by zero\n"); - return false; + return false; // Delenie nulou } - return vloz(kalkulacka, b / a); } return false; @@ -121,9 +120,6 @@ int main() { break; case '/': if (!delit(&kalkulacka)) { - return 0; - } - else{ printf("no input\n"); return 0; } @@ -139,6 +135,6 @@ int main() { } } - printf("no input\n"); + printf("no input\n"); // Vždy vypíše "no input" na konci return 0; }