I have the following code modified from Assigning variable number to complex array
program complex_array complex indx(3,3) integer i,j real indx