First, get rid of the inputting of scores that takes places before the loop; you might as well do it all in the loop.
You can only know the average after you know all the scores, so don't output the average inside the loop; do it after. Right after you get each score inside the loop, add it to the totalScores. After the loop, you can calculate the average just with totalScores/10.