diff --git a/cv10/program.c b/cv10/program.c index acabd87..82a5a63 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -46,10 +46,12 @@ int main() { if (num_accepted < max_students && num_accepted < num_students) { printf("Neprijati studenti:"); - for (int i = num_accepted; i < max_students; i++) { - printf("%s", names[i]); + for (int i = 0; i < max_students; i++) { + if (names[i][0] == '\0') { + printf("%s", names[i]); + } } } - + return 0; } \ No newline at end of file