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

This commit is contained in:
Pavlo Tverdyi 2020-04-16 00:19:03 +00:00
parent 5d19c905dc
commit a0eb4665a5

View File

@ -67,11 +67,12 @@ void sort(struct LIS* list,int count){
void print(struct LIS *list,int count,int places){
int j=0;
if(places>0){
puts("Prijati studenti:\n");
puts("Prijati studenti:");
for(;j<places;j++){
printf("%s %s\n",list[j].sname,list[j].fname);
}
}
if(count-places>0)
puts("Neprijati studenti:\n");
for(int i=j;i<count;i++){
printf("%s %s\n",list[j].sname,list[j].fname);