This commit is contained in:
Pavlo Tverdyi 2020-02-29 18:27:24 +01:00
parent f12668a0ca
commit d661724ffc

View File

@ -1,28 +0,0 @@
#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;
}