we were given this problem by our teacher but i am clueless on what to do. any help would be greatly appreciated.
explain what is happening in the pseudo code LOOP in one word. What is the temp referring, and what is the final output for this program:
input (12,25,11,28,14)
BEGIN
temp := a1
for I = 2 to n
if temp < ai then temp := ai
END
Print temp


LinkBack URL
About LinkBacks
