lastonehopefully2
This commit is contained in:
parent
b93f53abc2
commit
0a27842229
17
a1/program.c
17
a1/program.c
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user