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:
temp := a1
for I = 2 to n
if temp < ai then temp := ai