skuska
This commit is contained in:
parent
83aa7fbc70
commit
a9359099b4
@ -1 +1,16 @@
|
||||
#include
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
char ch;
|
||||
int line_count = 0;
|
||||
|
||||
while ((ch = getchar()) != EOF) {
|
||||
if (ch == '\n') {
|
||||
line_count++;
|
||||
} else {
|
||||
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : ((ch >= 'A' && ch <= 'Z') ? (ch + 32) : (ch >= 32 && ch <= 126 ? ch : '\0')));
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user