PRO test_for, n_iterations ; this procedure demostrates the for loop control statement ; this procedure a 2D array, the first column of the array is set to the index of the array ; the second colum of the array is then set to the index of the array to the indexed power. array = DBLARR(2, n_iterations) FOR i = 0L, n_iterations-1 DO BEGIN array(0,i) = i array(1,i) = i^i ENDFOR print, array END