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

This commit is contained in:
Oleksandr Hryshchenko 2021-03-07 00:03:53 +00:00
parent 8f35e46418
commit 5f8bcc642d

View File

@ -9,7 +9,7 @@ int main () {
int counter = 0;
int numbers [100];
for (int i = 0; fgets(BMW, 100, stdin) != NULL; i++){
if (!strcmp("\n", BMW) || !strcmp(EOF, BMW)) {
if (!strcmp("\n", BMW)) {
counter = i;
break;
}