Problem of display in a " for" loop

The draw() function loops once per frame.