FUNGUJ
This commit is contained in:
parent
655ba5e29e
commit
0728db4408
@ -5,11 +5,12 @@ int main() {
|
||||
int lines_count = 0;
|
||||
|
||||
while ((text = getchar()) != EOF) {
|
||||
if (text == '\t') {
|
||||
putchar('\t');
|
||||
} else if (text == '\n') {
|
||||
lines_count++;
|
||||
if (text == '\n') {
|
||||
putchar('\n');
|
||||
lines_count++;
|
||||
} else if (text == '\t') {
|
||||
putchar('\t');
|
||||
continue;
|
||||
} else if (text >= 'a' && text <= 'z') {
|
||||
putchar(text - 'a' + 'A');
|
||||
} else if (text >= 'A' && text <= 'Z') {
|
||||
@ -21,6 +22,6 @@ int main() {
|
||||
}
|
||||
}
|
||||
|
||||
printf("Lines count: %d\n", lines_count);
|
||||
printf("\nLines count: %d\n", lines_count);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user