29 lines
441 B
C
29 lines
441 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;
|
|
}
|
|
if(simb=='\n'){
|
|
riad++;
|
|
}
|
|
putchar(simb);
|
|
}
|
|
printf("\nPočet riadkov: %d\n",riad);
|
|
return 0;
|
|
}
|
|
|