pvjc20/program.c

29 lines
392 B
C
Raw Normal View History

2020-02-29 17:20:33 +00:00
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
int main()
{
char simb;
int riad=0;
while(1){
simb=getchar();
if(islower(simb)){
simb-=32;
}
else if (isupper(simb)){
simb+=32;
}
else if(simb==EOF){
break;
}
putchar(simb);
if(simb=='\n'){
riad++;
}
}
printf("%d",riad);
return 0;
}