24 lines
441 B
C
24 lines
441 B
C
#include <stdio.h>
|
|
|
|
|
|
int main()
|
|
{
|
|
char c;
|
|
int counter=0;
|
|
while ((c = getchar()) != EOF) {
|
|
if (c=='\n'||c=='\t'||c=='\r' ||c=='\f'||(c >= 32 && c <= 126)){
|
|
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("\nLines count: %d\n",counter);
|
|
return 0;
|
|
}
|