skuska
This commit is contained in:
parent
e0d6b4ed32
commit
b5341ca975
@ -9,12 +9,12 @@ int main() {
|
|||||||
line_count++;
|
line_count++;
|
||||||
} else {
|
} else {
|
||||||
if (!((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) && !(ch >= 32 && ch <= 126)) {
|
if (!((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) && !(ch >= 32 && ch <= 126)) {
|
||||||
continue; // Skip control characters and non-printable characters
|
continue;
|
||||||
}
|
}
|
||||||
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
|
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nLines count: %d\n", line_count);
|
printf("\nLines count: %d\n", line_count);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user