grades = [88, 99, 73, 56, 87, 64]sum = 0grades.each do |grade| sum += gradeendaverage = sum / grades.lengthputs average