diff --git a/du6/program.c b/du6/program.c index f416697..fc974d0 100644 --- a/du6/program.c +++ b/du6/program.c @@ -73,7 +73,7 @@ void print(struct LIS *list,int count,int places){ if(places>0){ int k=0; printf("Prijati studenti:\n"); - for(int i=0;k!=places;i++){ + for(int i=0;k!=places+1;i++){ if(list[i].num==0){ fputs(list[i].fname,stdout); k++; @@ -83,7 +83,7 @@ void print(struct LIS *list,int count,int places){ if(count-places>0){ int k=0; printf("Neprijati studenti:\n"); - for(int i=places;i