pvjc24/cv1/program.c
2024-02-22 13:36:59 +01:00

22 lines
362 B
C

#include <stdio.h>
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("\nLines count: %d",counter);
return 0;
}