a
This commit is contained in:
parent
5bcfccd6cc
commit
396bacd4c0
BIN
a1/capslock
BIN
a1/capslock
Binary file not shown.
@ -1,23 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
int main() {
|
||||
int c;
|
||||
int lines = 0;
|
||||
|
||||
while ((c = getchar()) != EOF) {
|
||||
if (islower(c)) {
|
||||
putchar(toupper(c));
|
||||
} else if (isupper(c)) {
|
||||
putchar(tolower(c));
|
||||
} else if (c == '\n') {
|
||||
putchar(c);
|
||||
lines++;
|
||||
} else if (isprint(c)) {
|
||||
putchar(c);
|
||||
}
|
||||
}
|
||||
|
||||
printf("\nRiadky: %d\n", lines);
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user