Aktualizovat a1/program.c
This commit is contained in:
parent
dc657d00e1
commit
65f7d03c13
@ -7,24 +7,21 @@ int main()
|
||||
while (1)
|
||||
{
|
||||
int vstup = getchar();
|
||||
if (vstup == EOL) {break;}
|
||||
if (vstup == EOF) {break;}
|
||||
|
||||
if (vstup == '\n')
|
||||
{
|
||||
pocetRiadkov += 1;
|
||||
putchar(vstup);
|
||||
}
|
||||
|
||||
else if (islower(vstup) != 0)
|
||||
{
|
||||
putchar(toupper(vstup));
|
||||
}
|
||||
|
||||
else if (isupper(vstup) != 0)
|
||||
{
|
||||
putchar(tolower(vstup));
|
||||
}
|
||||
|
||||
else if (iscntrl(vstup) != 0)
|
||||
{
|
||||
putchar(vstup);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user