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

^^
This commit is contained in:
Oleksandr Hryshchenko 2021-04-01 13:26:01 +00:00
parent c67863fa4b
commit ccfc25ac22

View File

@ -16,7 +16,8 @@ int main(){
bool equals = false; bool equals = false;
for(int i = 0; fgets(input, 100, stdin) != NULL; i++){ for(int i = 0; fgets(input, 100, stdin) != NULL; i++){
if(!input || !strcmp(input, "") || input[0] == EOF) break; if(!input || !strcmp(input, "") || input[0] == EOF || input[0] == '\n' || input[0] == '\0')
break;
counter = 0; counter = 0;
operation = 0; operation = 0;
equals = false; equals = false;