Problem 2 in English
Previous slide
Next slide
Back to first slide
View graphic version
Problem: The marks for 70 students are to be entered. Find and display the average mark.
Use a loop controlled by a counter.
Semi-English solution:
Initialize counter, sum
WHILE counter <= 70
GET mark
Add mark to sum
Increment counter
ENDWHILE
Calculate average using counter, sum
PUT average