This algorithm is designed to find the minimum value held within an array called testscore. This array will hold ten values.
Line 1 SET minimum TO testscore [0]Line 2 FOR counter FROM 1 TO 9 DOLine 3 IF testscore[counter] ˃ minimum THENLine 4 SET minimum TO testscore[counter]Line 5 END IFLine 6 END FORExplain the role of the variable ‘counter’ in this example.