Looks like you are learning FORTRAN by try and error method. How about reading a text book or reference manual? You'll want to review the chapter about formatted I/O. By now, you are using default output formating, resulting in the shown output formats. It's basically readable, but apparently specific format specifications are the next step.
I have been using FORTRAN the last time nearly 30 years ago, so I don't remember details related to your question.