corection4
This commit is contained in:
parent
3a254bf726
commit
cec61287a9
@ -6,6 +6,7 @@ int main()
|
|||||||
char c;
|
char c;
|
||||||
int counter=0;
|
int counter=0;
|
||||||
while ((c = getchar()) != EOF) {
|
while ((c = getchar()) != EOF) {
|
||||||
|
if (c >= 32 && c <= 126){
|
||||||
if(c<='z'&&c>='a'){
|
if(c<='z'&&c>='a'){
|
||||||
c=c+('A'-'a');
|
c=c+('A'-'a');
|
||||||
}else if(c<='Z'&&c>='A'){
|
}else if(c<='Z'&&c>='A'){
|
||||||
@ -15,6 +16,7 @@ int main()
|
|||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
printf("%c",c);
|
printf("%c",c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
printf("\nLines count: %d\n",counter);
|
printf("\nLines count: %d\n",counter);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user