Initialization

This commit is contained in:
Kozar 2024-04-22 14:15:10 +02:00
parent 7d46dd0253
commit 25fd4de705

View File

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