commit c7706f9f1b456fcb51abe4168af8f1f55f0a4262 Author: Pavlo Tverdyi Date: Sat Feb 29 18:20:33 2020 +0100 111 diff --git a/program.c b/program.c new file mode 100644 index 0000000..b0eb4ea --- /dev/null +++ b/program.c @@ -0,0 +1,28 @@ +#include +#include +#include + +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; +} +