Finding Maximum in List
Init max
While not end of list
Read value
If (value>max)
max ? value
Report max
Need to know range of values
Need to assign sentinel, or use end-of-file (ctrl-d in UNIX) character.
Previous slide
Next slide
Back to first slide
View graphic version