Print out values in a while loop each time into an array.
9 views (last 30 days)
I want this while loop to print out the endlocation each time into an array. How do I do this?
Ken Atwell on 16 Oct 2015
A semicolon at the end of the line suppresses output [ reference ], so displaying output is a matter of just remove the semicolon from your existing statement:
If you want to print out the value of endlocation in the inner loop, just remove the semi-colon:
If you want to print out the value in the outer loop, add a new line with just the variable name (and no semi-colon) where/when you want it displayed.