corection2
This commit is contained in:
parent
50ac9610ec
commit
2e5b5fe78b
@ -4,14 +4,18 @@
|
||||
int main()
|
||||
{
|
||||
char c;
|
||||
int counter=0;
|
||||
while ((c = getchar()) != EOF) {
|
||||
if(c<='z'&&c>='a'){
|
||||
c=c+('A'-'a');
|
||||
}else if(c<='Z'&&c>='A'){
|
||||
c=c-('A'-'a');
|
||||
}
|
||||
if(c=='\n'){
|
||||
counter++;
|
||||
}
|
||||
printf("%c",c);
|
||||
}
|
||||
printf("\n");
|
||||
printf("\nLines count: %d",counter);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user