Answer:
The algorithm as written here will do nothing useful, as a1 is always being compared to a1. It will only print a1 and location 1.
Explanation:
As intended to be written, the comparison is "greater than", so there will only be a change in "largest_so_far" when a greater value is found. A value that is the same will not result in any new output. The algorithm as intended will find the first copy of the largest value.