From 97f559955f221138efce5ca6f3ca54f08c6430f9 Mon Sep 17 00:00:00 2001 From: Weber Date: Mon, 14 Oct 2024 13:31:15 +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 963be93..4a3e4f0 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -97,11 +97,7 @@ int main() { } } else if (sscanf(vstup, "%c", &operacia) == 1) { if (!je_platna_operacia(operacia)) { - if (kalkulacka.vrchol >= 0) { - printf("%.2f\nbad input\n", kalkulacka.zasobnik[kalkulacka.vrchol]); - } else { - printf("bad input\n"); - } + printf("bad input\n"); return 0; } switch (operacia) { @@ -146,7 +142,7 @@ int main() { } } } else { - printf("no input\n"); + printf("bad input\n"); return 0; } }