From 9f3cb06f00340e5d9ba25a9f0b8f1716e0eda376 Mon Sep 17 00:00:00 2001 From: Patrik Seman Date: Thu, 23 Feb 2023 12:57:54 +0000 Subject: [PATCH] Delete 'du1/program.c' --- du1/program.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 du1/program.c diff --git a/du1/program.c b/du1/program.c deleted file mode 100644 index 68631d7..0000000 --- a/du1/program.c +++ /dev/null @@ -1,29 +0,0 @@ -#include - - - -int main(){ - int c= 0; - int n=0; // pocet nacitanych znakov - while(1){ - c = getchar(); - - if(c!=-1){ //-1 eof koniec vstupu - if( c >= 'a' && c <= 'z'){ //porovnavam cisla v ascii tabulke - c=c+'A'-'a'; //velke pismeno na male - } - else if(c >= 'A' && c <= 'Z'){ - c=c-'A'+'a'; //male pismeno na velke - } - } - else{ - break; - } - n++; - putchar(c); - - -} -printf("%d\n", n); //vypise pocet zpouzitych znakov -return 0; -} \ No newline at end of file