test
This commit is contained in:
parent
e8a40d62ed
commit
6cc6195f5d
@ -47,13 +47,13 @@ int main() {
|
|||||||
|
|
||||||
qsort(names, numStudents, sizeof(names[0]), strcmp);
|
qsort(names, numStudents, sizeof(names[0]), strcmp);
|
||||||
|
|
||||||
printf("\nPrijati studenti:\n");
|
printf("Prijati studenti:\n");
|
||||||
for (int i = 0; i < maxStudents && i < numStudents; i++) {
|
for (int i = 0; i < maxStudents && i < numStudents; i++) {
|
||||||
printf("%s\n", names[i]);
|
printf("%s\n", names[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (numStudents > maxStudents) {
|
if (numStudents > maxStudents) {
|
||||||
printf("\nNeprijati studenti:\n");
|
printf("Neprijati studenti:\n");
|
||||||
for (int i = maxStudents; i < numStudents; i++) {
|
for (int i = maxStudents; i < numStudents; i++) {
|
||||||
printf("%s\n", names[i]);
|
printf("%s\n", names[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user