diff --git a/cv3/program.c b/cv3/program.c index 1b0c9b2..2d8cf6a 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -99,7 +99,7 @@ int main() { else if (sscanf(vstup, "%c", &operacia) == 1) { if (!je_platna_operacia(operacia)) { printf("bad input\n"); - continue; + return 0; } switch (operacia) { case '+':