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

This commit is contained in:
Vladyslav Korzun 2023-02-19 10:50:23 +00:00
parent d20f4a541a
commit e85b74c55a

View File

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