From 37c601b2ee35656ed492f5ac3e4677aed269c951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1=C5=A1?= Date: Wed, 21 Feb 2024 15:36:35 +0000 Subject: [PATCH] Update 'cv1/program.c' --- cv1/program.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cv1/program.c b/cv1/program.c index 1c8d542..0f3392b 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -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;