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

This commit is contained in:
Oleksandr Hryshchenko 2021-02-23 17:01:00 +00:00
parent 3c5c0dd981
commit e84226769f

View File

@ -29,7 +29,7 @@ int main (){
} }
else{ else{
for(int i = 0; i < 100; i++){ for(int i = 0; i < 100; i++){
if(c[i] == '\n') break; if(c[i] == '\n' || c[i] == "\0") break;
if(isupper(c[i])) { if(isupper(c[i])) {
printf("%c", tolower(c[i])); printf("%c", tolower(c[i]));
} }