From 1cf6bf3953ccd313ab427257af41bfecc197521f Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 22 Feb 2024 13:38:48 +0100 Subject: [PATCH] commit --- pvjc24/cv1/program.c | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 pvjc24/cv1/program.c diff --git a/pvjc24/cv1/program.c b/pvjc24/cv1/program.c deleted file mode 100644 index 257c35e..0000000 --- a/pvjc24/cv1/program.c +++ /dev/null @@ -1,25 +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 > 31 && c <= 127) { - continue; // Preskočiť značky - } - putchar(c); // Vypíš znak - } - printf("\nPocet nacitanych riadkov: %d\n", line_count); - - return 0; -}