diff --git a/cv10/program.c b/cv10/program.c index 7ec603f..7bc56c8 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -51,8 +51,10 @@ int main() { qsort(applications, i, sizeof(char *), compare_names); printf("Prijati studenti:"); - for (j = 0; j < i; j++) { + int j = 0; + while (j < i) { printf("%s\n", applications[j]); + j++; } if (count < i) {