what is the purpose of the algorithm below myfunction s n mynum a mynum pl 1 for i 2 4944788
What is the purpose of the algorithm below? myfunction(
s,
n) {
mynum=
a
mynum_pl= 1
for
i= 2 to
n
if (
s
i
>
mynum) {
outval=
s
i
mynum_pl=
i
}
return
mynum_pl
} . . .