Initialization

This commit is contained in:
Kozar 2024-04-22 14:12:55 +02:00
parent 6874137ac4
commit 5685c0e1ad

View File

@ -41,14 +41,14 @@ int main() {
} else {
printf("Prijati studenti:\n");
for (int i = 0; i < num_accepted; i++) {
printf("%s", names[i]);
printf("%s\n", names[i]);
}
}
if (num_accepted < max_students) {
printf("Neprijati studenti:\n");
for (int i = num_accepted; i < max_students; i++) {
printf("%s", names[i]);
printf("%s\n", names[i]);
}
}