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

This commit is contained in:
Pavlo Tverdyi 2020-04-16 19:58:50 +00:00
parent 15fc7eaf56
commit 8ce4264c41

View File

@ -68,8 +68,8 @@ int mini;
void print(struct LIS *list,int count,int places){
if(count>0){
int i=0;
if(places>0){
int i=0;
int k=1;
printf("Prijati studenti:\n");
for(int i=0;k!=places+1;i++){
@ -81,7 +81,7 @@ void print(struct LIS *list,int count,int places){
}
if(count-places>0){
printf("Neprijati studenti:\n");
for(i;i<30;i++){
for(i=(count-places+1);i<30;i++){
if(list[i].num==0){
fputs(list[i].fname,stdout);
}