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