Изменил(а) на 'du1/program.c'

This commit is contained in:
Vladyslav Korzun 2023-02-19 10:42:56 +00:00
parent 083cbce135
commit bd75f93a60

View File

@ -16,16 +16,17 @@ riadok++;
if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){
if(islower(c)){
c = toupper(c);
printf("%c\n", c);
//printf("%c\n", c);
riadok++;
count++;
}
if(isupper(c) && count == 0){
c = tolower(c);
printf("%c\n", c);
//printf("%c\n", c);
riadok++;
}
}
putchar(c);
}
riadok--;
printf("\nPočet riadkov: %d\n", riadok);