#include int main() { char word; int count = 0; for (; (word = getchar()) != EOF;) { if (word >= 'a'&&word <= 'z') { word -= 32; } else if (word >= 'A'&&word <= 'Z'){ word += 32; } if (word == '\n') { count++; } putchar(word); } printf("\nPočet riadkov: %d\n", count); return 0; }