[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode integer ORDER, row, col
real,dimension(:,:),allocatable::S
read (*,*) ORDER
allocate(S(ORDER,ORDER))
character(len=40) :: fmtstring="(??(1x,f10.5))"
write(fmtstring(2:3),"(I2.2)") int(ORDER)
do row=1,ORDER
write(*,fmtstring) S(row,:)
enddo
|