diff --git a/a1/program.c b/a1/program.c index 546ce3e..9348682 100644 --- a/a1/program.c +++ b/a1/program.c @@ -21,17 +21,17 @@ int main() putchar(vstup); } - if (islower(vstup) != 0) + else if (islower(vstup) != 0) { putchar(toupper(vstup)); } - if (isupper(vstup) != 0) + else if (isupper(vstup) != 0) { putchar(tolower(vstup)); } - if (iscntrl(vstup) != 0) + else if (iscntrl(vstup) != 0) { //preskoci iteraciu/cyklus, ak neviditelny znak, resp. nevypise ho continue;