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

This commit is contained in:
Oleksandr Hryshchenko 2021-02-23 17:08:49 +00:00
parent 64c8c29b1a
commit a41555ab99

View File

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