From fa1a95fe659939df88bba447b7ada0c19f0a36c1 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 22 Feb 2024 14:03:39 +0100 Subject: [PATCH] commit --- cv1/program.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 cv1/program.c diff --git a/cv1/program.c b/cv1/program.c deleted file mode 100644 index 3930701..0000000 --- a/cv1/program.c +++ /dev/null @@ -1,30 +0,0 @@ -#include - -int main(){ - int c; - int line_count = 0; - - while ((c = getchar()) != EOF){ - if (c >= 'a' && c <= 'z') { - c = c - 'a' + 'A'; // Zmena malého písmena na veľké - } - else if (c >= 'A' && c <= 'Z') { - c = c - 'A' + 'a'; // Zmena veľkého písmena na malé - } - else if (c == '\n') { - line_count++; // Zvýšte počítadlo riadkov na konce riadka - } - else if (c == '\t'){ - putchar(c); - continue; - } - else if (c < ' ' || c >= 127) { - continue; // Preskočiť značky - } - - putchar(c); // Vypíš znak - } - printf("\nLines count: %d\n", line_count); - - return 0; -}