printing average marks of students