79111797

Date: 2024-10-21 21:25:02
Score: 0.5
Natty:
Report link

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.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ifffam