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; } }