I am using Fortran 90 and I am trying to get the following without new line
do i=1,size
read*, y(i)
end do
with this, I always get the stdin by using the enter key. Like this Now, I want this without pressing the Enter key, like C++. How can I do it?
read*, y(i)you are explicitly asking for each item to be on a new line. Perhaps you are simply afterread*, y(1:size)(outside the loop) and you can split them over as many lines as you like? It's not clear that's what you mean, so please explain in more detail what you are trying to do.