Изменить 'du6/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-04-16 14:26:49 +00:00
parent 34846db96f
commit 79e76f37fa

View File

@ -81,7 +81,7 @@ void print(struct LIS *list,int count,int places){
if(count>0){
if(places>0){
printf("Prijati studenti:\n");
for(int i=0;i<=count;i++){
for(int i=0;i<=count-1;i++){
if(list[i].num==2){
printf("%s\n",list[i].fname);
}
@ -92,7 +92,7 @@ void print(struct LIS *list,int count,int places){
}
if(count-places>0){
printf("Neprijati studenti:\n");
for(int i=0;i<=count;i++){
for(int i=0;i<=count-1;i++){
if(list[i].num==3){
printf("%s\n",list[i].fname);
}