diff --git a/cv10/program.c b/cv10/program.c index f22588c..0aebb24 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -50,13 +50,13 @@ int main() { // Sort the applications alphabetically qsort(applications, i, sizeof(char *), compare_names); - printf("Prijati studenti:"); - for (j = 0; j < (count < i ? count : i); j++) { + printf("Prijati studenti:\n"); + for (j = 0; j < i; j++) { printf("%s\n", applications[j]); } if (count < i) { - printf("Neprijati studenti:"); + printf("Neprijati studenti:\n"); for (; j < i; j++) { printf("%s\n", applications[j]); }