2020-03-01 12:16:16 +00:00
|
|
|
#include <stdlib.h>
|
2020-02-29 17:23:39 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
char simb;
|
|
|
|
int riad=0;
|
|
|
|
while(1){
|
2020-03-01 12:27:06 +00:00
|
|
|
simb=getchar();
|
2020-03-01 12:33:27 +00:00
|
|
|
if(islower(simb)){
|
|
|
|
simb-=32;
|
|
|
|
}
|
|
|
|
else if (isupper(simb)){
|
|
|
|
simb+=32;
|
|
|
|
}
|
|
|
|
else if(simb==EOF){
|
|
|
|
break;
|
2020-03-01 12:27:06 +00:00
|
|
|
}
|
2020-03-01 12:33:27 +00:00
|
|
|
if(simb=='\n'){
|
|
|
|
riad++;
|
|
|
|
}
|
|
|
|
putchar(simb);
|
2020-02-29 17:23:39 +00:00
|
|
|
}
|
2020-03-01 12:27:06 +00:00
|
|
|
printf("\nPočet riadkov: %d\n",riad);
|
2020-02-29 17:23:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|