I tried to make the output format dynamically in the sense that the number of variables to be printed out could be varied dynamically. I had done some experiment with the fo
You don't need to supply exact number of values, indicating more is ok. The normal way is to use a large enough value, like
'(a,999f9.4)'
in Fortran 2008 u can use the feature M.S.B. shows *999(f9.4).
If you need dynamic string for some other purpose, use the concatenation operator //.
Fortran recently added * as an unlimited format repeater. e.g., '( *(2X, F3.1) )' This is easier to use than a dynamic format.