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 <stdio.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int c = 0;
|
int c = 0;
|
||||||
int pocet_riadkov = 0;
|
int pocet_riadkov = 0;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
c = getchar();
|
c = getchar();
|
||||||
@ -11,10 +12,14 @@ int main() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c >= 'a' && c <= 'z') {
|
if (isalpha(c)) {
|
||||||
c = c - 'a' + 'A';
|
if (c >= 'a' && c <= 'z') {
|
||||||
} else if (c >= 'A' && c <= 'Z') {
|
c = c - 'a' + 'A';
|
||||||
c = c - 'A' + 'a';
|
} else if (c >= 'A' && c <= 'Z') {
|
||||||
|
c = c - 'A' + 'a';
|
||||||
|
}
|
||||||
|
} else if (c == 1425) {
|
||||||
|
c = 'q';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
|
Loading…
Reference in New Issue
Block a user