how to put blank spaces in between list of numbers generated in FORTRAN
Dear Sir/Madam,
I have two sets of data. 1,2,3,4 and 6,7,8 and I have written a fortran code to put them in order as below:
**********************************************
program gap
implicit none
!
integer:: i, j
do i = 1,4
do j = 6, 8
print*, i, j
end do
end do
end program gap
**********************************************
When I execute this program I get the output as below:
1,6
1,7
1,8
2,6
2,7
2,8
3,6
3,7
3,8
4,6
4,7
4,8
BUT I want the out put as below:
1,6
1,7
1,8
2,6
2,7
2,8
3,6
3,7
3,8
4,6
4,7
4,8
I want a space once every row loop has finish.I am dont know how to write the data as shown above using the fortran code in this post.
Could anyone help ?
Thanks in advance.
Vijay.M
|