Compare commits

...

2 Commits

Author SHA1 Message Date
9f3cb06f00 Delete 'du1/program.c' 2023-02-23 12:57:54 +00:00
85f4f8d165 Delete 'du1/program' 2023-02-23 12:50:06 +00:00
2 changed files with 0 additions and 29 deletions

Binary file not shown.

View File

@ -1,29 +0,0 @@
#include <stdio.h>
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;
}