This is my code:
program test
integer, dimension(3,3) :: a =(/1,2,3,4,5,6,7,8,9/)
do i=1,3
write(*,*) (a(i,j),j=1,3)
enddo
end program
I get the following error:
Incompatible ranks 2 and 1 in assignment at (1)
Is the initialization method wrong?