Hi all, I am new to Fortran too.
the proposed solution works, but there is any method to set the number of columns from the input?
what I am looking for is a way to let work
integer ::a, i ,j
read (*,*) a
do i = 1,1092
write(12,'a(fw.d)') (1.0, j =1,a)
...