I'm only aware of an indirect way, namely: to dump the values of the do-loop in a string:
reset session
# n = *some integer*. For simplicity, let's take n = 2
n = 2
array med2[n]
med2[1] = 3.23; med2[2] = 5.43
s = 'MEDIA '
do for [i=1:n] {
s = s.gprintf("%8.2f",med2[i])
}
print s
Result:
MEDIA 3.23 5.43
I guess there may be a more direct way, like putting some symbol right after 'MEDIA ' and after the print in the loop. But I've got no idea.