From 8e3406d04d3e11fe46c36c059bea02f1712defde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ut=C4=BE=C3=A1k?= Date: Wed, 14 Feb 2024 15:37:44 +0000 Subject: [PATCH] Delete 'cv1/program.c' --- cv1/program.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cv1/program.c diff --git a/cv1/program.c b/cv1/program.c deleted file mode 100644 index a7368f5..0000000 --- a/cv1/program.c +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include - -int main() { - int ch; - int visibleChars = 0; - - printf("Zadajte text (ukoncite vstup s Ctrl+D):\n"); - - while ((ch = getchar()) != EOF) { - if (islower(ch)) { - ch = toupper(ch); - } else if (isupper(ch)) { - ch = tolower(ch); - } - - if (isprint(ch) || ch == '\n') { - putchar(ch); - if (ch != '\n') { - visibleChars++; - } - } - } - - printf("\nPocet načítaných riadkov: %d\n", visibleChars); - - return 0; -} -