Aktualizovat „du5/program.c“

This commit is contained in:
Bohdan Yanchyk 2020-04-09 23:08:22 +00:00
parent 547052ae7c
commit 1d395a91a2

View File

@ -81,12 +81,10 @@ int main(){
} }
} }
if(c>1){ c-=(k+1);
k--;
}
printf("Vysledky:\n"); printf("Vysledky:\n");
for(int i =0;i<k;i++){ for(int i =0;i<c;i++){
printf("%d %s\n",PersonList[i].score,PersonList[i].name); printf("%d %s\n",PersonList[i].score,PersonList[i].name);
} }
return 0; return 0;