This commit is contained in:
Weber 2024-04-24 10:08:32 +00:00
parent e8a40d62ed
commit 6cc6195f5d

View File

@ -47,13 +47,13 @@ int main() {
qsort(names, numStudents, sizeof(names[0]), strcmp);
printf("\nPrijati studenti:\n");
printf("Prijati studenti:\n");
for (int i = 0; i < maxStudents && i < numStudents; i++) {
printf("%s\n", names[i]);
}
if (numStudents > maxStudents) {
printf("\nNeprijati studenti:\n");
printf("Neprijati studenti:\n");
for (int i = maxStudents; i < numStudents; i++) {
printf("%s\n", names[i]);
}