1. Create a variable to store the sum of the ages of the 10 students
2. Create a loop to iterate through the 10 students
3. For each student, add their age to the sum
4. Divide the sum by 10 to get the average age
5. Display the average age
Write an algorithm to compute the average age of 10 students in a class and display the result
1 answer