Update 'cv1/program.c'
This commit is contained in:
parent
444db62bfe
commit
61c826d6b4
@ -9,13 +9,13 @@ int main() {
|
|||||||
line_count++;
|
line_count++;
|
||||||
} else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) {
|
} else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) {
|
||||||
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
|
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
|
||||||
} else if (ch >= 32 && ch <= 126) {
|
|
||||||
putchar(ch);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
putchar('\n');
|
if (ch == '\n') {
|
||||||
printf("Lines count: %d\n", line_count);
|
printf("\nLines count: %d\n", line_count);
|
||||||
|
line_count = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user