add file
This commit is contained in:
parent
43d4142500
commit
042e637c4f
@ -5,14 +5,17 @@
|
|||||||
char OutSym;
|
char OutSym;
|
||||||
|
|
||||||
while(1){
|
while(1){
|
||||||
Sym=getchar();
|
Sym=getchar();
|
||||||
if(Sym==EOF || Sym==0)break;
|
if(Sym==EOF || Sym==0){
|
||||||
else if(Sym<='Z'&&Sym>='A')Sym +=32;
|
counter++;
|
||||||
else if(Sym<='z'&&Sym>='a')Sym-=32;
|
break;
|
||||||
counter++;
|
}
|
||||||
OutSym=Sym;
|
else if(Sym<='Z'&&Sym>='A')Sym +=32;
|
||||||
putchar(OutSym);
|
else if(Sym<='z'&&Sym>='a')Sym-=32;
|
||||||
}
|
//counter++;
|
||||||
|
OutSym=Sym;
|
||||||
|
putchar(OutSym);
|
||||||
|
}
|
||||||
printf("\nPočet riadkov: %d\n",counter);
|
printf("\nPočet riadkov: %d\n",counter);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user