lastonehopefully2

This commit is contained in:
Rudolf Zambory 2025-02-20 17:47:39 +01:00
parent b93f53abc2
commit 0a27842229

View File

@ -1,8 +1,9 @@
#include <stdio.h>
#include <ctype.h>
int main() {
int c = 0;
int pocet_riadkov = 0;
int c = 0;
int pocet_riadkov = 0;
while (1) {
c = getchar();
@ -11,10 +12,14 @@ int main() {
break;
}
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
} else if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
if (isalpha(c)) {
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
} else if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
} else if (c == 1425) {
c = 'q';
}
if (c == '\n') {