diff --git a/cv1/program.c b/cv1/program.c index 1a1b0b0..5425b63 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -6,15 +6,12 @@ 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'; } if (c == '\n') { - lineCount++; } @@ -23,7 +20,7 @@ int main() { } - printf("Linesā£count: %d\n", lineCount); + printf("\nLinesā£count: %d\n", lineCount); return 0; }