From c2a2cec96c5fbd4fa375d560461b94b2c7c2438e Mon Sep 17 00:00:00 2001 From: Weber Date: Mon, 14 Oct 2024 12:01:43 +0000 Subject: [PATCH] test --- cv3/program.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cv3/program.c b/cv3/program.c index 0b9c48d..3363d62 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -59,7 +59,7 @@ 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); } @@ -82,8 +82,7 @@ int main() { fgets(vstup, sizeof(vstup), stdin); if (vstup[0] == '\n') { - printf("no input\n"); - break; + break; // Prázdny vstup ukončuje cyklus } float hodnota; @@ -134,6 +133,7 @@ int main() { return 0; } } - printf("no input\n"); + + printf("no input\n"); return 0; }