pvjc20/du1/program.c
Pavlo Tverdyi 573e609006 funguje
2020-03-01 13:16:16 +01:00

29 lines
407 B
C

#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("Počet riadkov %d",riad);
return 0;
}