Изменить 'du1/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-02-23 16:43:30 +00:00
parent ed3da5fd50
commit 470bd299d8

View File

@ -7,6 +7,7 @@ int main (){
char musor; char musor;
int counter = 0; int counter = 0;
while(fgets(c, 100, stdin) != NULL){ while(fgets(c, 100, stdin) != NULL){
getchar();
if(strlen(c) == 2){ if(strlen(c) == 2){
if (c[0] >= 'a' && c[0] <= 'z'){ if (c[0] >= 'a' && c[0] <= 'z'){
putchar (c[0] - 'a' + 'A'); putchar (c[0] - 'a' + 'A');