B4Coder

🎓 Student Explorer · Mission 5 of 13

📊 Class Average

The report card needs the class average: all the marks added up, divided by how many students there are.

Your mission

  1. Make total = 0, and add every student's marks to it.
  2. After the loop: average = round(total / length(students), 1).
  3. Tell "Average: " + average.

Getting the mission ready…