diff --git a/cv10/program.c b/cv10/program.c index 25adc30..720433d 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -30,12 +30,13 @@ int main() { if (!found) { strcpy(names[num_accepted], temp_name); + strcat(names[num_accepted], "\n"); num_accepted++; } } if (num_accepted == 0) { - printf("Ziadne prihlasky\n"); + printf("Ziadne prihlasky"); } else { printf("Prijati studenti:"); for (int i = 0; i < num_accepted; i++) { @@ -44,7 +45,7 @@ int main() { } if (num_accepted < max_students) { - printf("Neprijati studenti:\n"); + printf("Neprijati studenti:"); for (int i = num_accepted; i < max_students; i++) { printf("%s", names[i]); }