pvjc22/du1/program.c
Nazar Sendetskyi 97c9a45ec1 SAD
2022-03-03 22:25:04 +01:00

23 lines
339 B
C

#include <stdio.h>
int main(){
int C = 0;
char Big_Wort;
int count = 0;
while(1){
C = getchar();
if(C == EOF)
break;
if(C == '\n')
count++;
if(C >= 'a' && C <= 'z')
C = C - 'a' + 'A';
else if(C >= 'A' && C <= 'Z')
C = C - 'A' + 'a';
Big_Wort = C;
putchar(Big_Wort);
}
printf("\nPočet riadkov: %d\n",count);
return 0;
}