Silverfrost Forums

Welcome to our forums

Format problem

8 May 2011 1:03 #8189

hey guys i have problem printing the matrix in a formatted version. can anyone help how can i write : 1 8 9

4 6 5

1 2 3

this matrix in this format.Thanx in advanced.

8 May 2011 5:19 #8190

Quoted from 1so35 hey guys i have problem printing the matrix in a formatted version. can anyone help how can i write : 1 8 9

4 6 5

1 2 3

Try.

   write(*,'(3i0:/)') ((a(i,j), j=1,3), i=1,3)
Please login to reply.