Update 'cv1/program.c'

This commit is contained in:
Tamáš 2024-02-21 15:36:35 +00:00
parent 533848832d
commit 37c601b2ee

View File

@ -7,26 +7,19 @@ int main() {
while ((c = getchar()) != EOF) {
if (c >= 'a' && c <= 'z') {
c = c - 'a' + 'A';
}
else if (c >= 'A' && c <= 'Z') {
c = c - 'A' + 'a';
}
else if (c == '\n') {
if (c == '\n') {
lines_count++;
putchar('\n');
}
putchar(c);
}
printf("Lines count: %d\n", lines_count);
return 0;