Initialization
This commit is contained in:
parent
7d46dd0253
commit
25fd4de705
@ -39,16 +39,18 @@ int main() {
|
||||
if (num_accepted == 0) {
|
||||
printf("Ziadne prihlasky\n");
|
||||
} else {
|
||||
printf("Prijati studenti:");
|
||||
printf("Prijati studenti:\n");
|
||||
for (int i = 0; i < num_accepted; i++) {
|
||||
printf("%s\n", names[i]);
|
||||
printf("%s", names[i]);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (num_accepted < max_students) {
|
||||
printf("Neprijati studenti:\n");
|
||||
for (int i = num_accepted; i < max_students; i++) {
|
||||
printf("%s\n", names[i]);
|
||||
printf("%s", names[i]);
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user