Aktualizovat „du5/program.c“

This commit is contained in:
Artem Horbunov 2020-04-08 06:32:47 +00:00
parent ffa520e443
commit fb7c5d769d

View File

@ -98,8 +98,13 @@ int main(){
}
}
printf("Vysledky:\n");
for(int i = 0; i < newPos; i++){
printf("%d %s\n", newScore[i], newName[i]);
if(pos == 0){
printf("Nepodarilo nacitat nicn\n");
}
else{
printf("Vysledky:\n");
for(int i = 0; i < newPos; i++){
printf("%d %s\n", newScore[i], newName[i]);
}
}
}