program test
open(50,file='test.dat')
write(6 ,FMT='(I3,/)') 111
WRITE(6 ,FMT='(I3,/)') 222
write(50,FMT='(I3,/)') 111
WRITE(50,FMT='(I3,/)') 222
close(50)
end
In the above, at the screen i see:
111
222
but in the dat file i see:
111222...
When i use the command
./ a.exe it prints int the command window
but when i use
run a.exe it does not print
I wonder what's the difference between those commands?
I use gfortran on cygwin and i want to print in the command window (like it prints in windows)
i use the usual stuff:
WRITE(6,*) 'Give a number:'
or
PRINT(6,*) 'Give a number:'
but the execution completes without any printing..
What is wrong?