add
This commit is contained in:
parent
b27803f4b8
commit
5ecc70261a
@ -1,24 +0,0 @@
|
|||||||
#include<stdio.h>
|
|
||||||
|
|
||||||
int main(){
|
|
||||||
int counter=0, Sym;
|
|
||||||
char OutSym;
|
|
||||||
|
|
||||||
while(1){
|
|
||||||
Sym=getchar();
|
|
||||||
if(Sym=='\n'){
|
|
||||||
counter++;
|
|
||||||
}
|
|
||||||
if(Sym==EOF){
|
|
||||||
//counter++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else if(Sym<='Z'&&Sym>='A')Sym +=32;
|
|
||||||
else if(Sym<='z'&&Sym>='a')Sym-=32;
|
|
||||||
//counter++;
|
|
||||||
OutSym=Sym;
|
|
||||||
putchar(OutSym);
|
|
||||||
}
|
|
||||||
printf("\nPočet riadkov: %d\n",counter);
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user