help in codes

Hi guys,

I am going to write a code that that will calculate the average of row1 and row2 of an aray[2][12]. But how can i store the results of the average in between row1 and row2 into same array?