Questions about print

Does the print statement have something similar to C++'s endl and setprecision? Also, how to insert a tab?

A direct analogue to endl is the function new_line. There is also the ‘/’ edit descriptor, which allows line breaks to be part of the format string, rather than the I/O item list. If you need the flushing behavior as well, there is the FLUSH statement.

For setting precision, you should find a tutorial on formatted I/O and use edit descriptors with an adequate width and number of digits for your purpose. There is no concept of a modifiable “default” precision.

For tabbing, consider the ‘TL’ edit descriptor.

Fortran has a rich formatting system, but it is distinct from C-style and you may not find clean 1-to-1 matches for everything. For a short and simple reference this wiki page can get you started. From there, you can get into more technical references as you need.