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

This commit is contained in:
Vladyslav Korzun 2023-02-17 12:01:26 +00:00
parent c9c0d2e2b8
commit 12db2cbebd

View File

@ -11,19 +11,19 @@ c = getchar();
if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){
if (c >= 'a' && c <= 'z' && count == 0){
c = c - 32;
printf("%c\n", c);
printf("%c", c);
count++;
riadok++;
}
if (c >= 'A' && c <= 'Z' && count == 0){
c = c + 32;
printf("%c\n", c);
printf("%c", c);
riadok++;
}
pop++;
}
else{
if(c != 32 && c != 10 && pop == 0){
if(c != 10 && pop == 0){
printf("%c\n", c);
riadok++;
}