diff --git a/cv10/program.c b/cv10/program.c index 0635dcf..2203cfa 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -24,7 +24,7 @@ int main() { memset(names, 0, sizeof(names)); - while (fgets(temp_name, sizeof(temp_name), stdin)!= NULL && num_accepted < max_students) { + while (fgets(temp_name, sizeof(temp_name), stdin) != NULL && num_accepted < max_students) { int i, found = 0; @@ -43,9 +43,8 @@ int main() { } num_students++; - if (num_accepted == max_students) { - break; + break; } }