diff --git a/du6/program.c b/du6/program.c index 64ba00c..92c5ffb 100644 --- a/du6/program.c +++ b/du6/program.c @@ -97,11 +97,11 @@ int main(){ } else{ printf("Prijati studenti:%s", string); - for(int i = 0; i <= lines; i++){ + for(int i = 0; i < lines + test; i++){ printf("%s\n", newNames[i]); } puts("Neprijati studenti:"); - for(int i = lines + 1; i < newLines; i++){ + for(int i = lines + test; i < newLines; i++){ printf("%s\n", newNames[i]); } }