Initialization

This commit is contained in:
Kozar 2024-04-25 18:02:44 +02:00
parent d48b60a0fb
commit 77eea37bb6

View File

@ -38,13 +38,13 @@ int main() {
if (num_accepted == 0) { if (num_accepted == 0) {
printf("Ziadne prihlasky"); printf("Ziadne prihlasky");
} else { } else {
printf("Prijati studenti:\n"); printf("Prijati studenti:");
for (int i = 0; i < num_accepted; i++) { for (int i = 0; i < num_accepted; i++) {
printf("%s", names[i]); printf("%s", names[i]);
} }
if (num_students > num_accepted) { if (num_students > num_accepted) {
printf("\nNeprijati studenti:\n"); printf("Neprijati studenti:");
for (int i = 0; i < num_students; i++) { for (int i = 0; i < num_students; i++) {
int found = 0; int found = 0;
for (int j = 0; j < num_accepted; j++) { for (int j = 0; j < num_accepted; j++) {