Nov 28, 2006 #1 scottix Programmer Nov 28, 2006 1 US I am using gfortran I want to display array as: cCode(1)cCode(2)etc.. instead I get cCode(1) cCode(2) etc... Here is my code character cCode(iMSolution) write(*,'(A)') cCode How do I get it the way I want?
I am using gfortran I want to display array as: cCode(1)cCode(2)etc.. instead I get cCode(1) cCode(2) etc... Here is my code character cCode(iMSolution) write(*,'(A)') cCode How do I get it the way I want?
Nov 29, 2006 #2 xwb Programmer Jul 11, 2002 6,828 GB Code: character*16:: fmt write (fmt,10) iMSolution 10 format ('(',I3,'A)') write(*,fmt) cCode Upvote 0 Downvote