diff --git a/cv10/program.c b/cv10/program.c index 29274e5..e3e5a26 100644 --- a/cv10/program.c +++ b/cv10/program.c @@ -56,9 +56,9 @@ int main() { printf("%s\n", applications[j]); } - if (count > accepted_count) { + if (count < accepted_count) { printf("Neprijati studenti:"); - for (; j < count; j++) { + for (; j < i; j++) { printf("%s\n", applications[j]); } }