FORMAT statements let you get things looking exactly like you want, but they are not very forgiving. Compile and run the modified version of ``fmt2.f'', but this time give it single digit numbers separated by only one space. Can you explain what is printed out?
Using formatted READ statements for situations in which the user is entering the input is usually not a very good idea. In such situations, it is better to use the list-directed input (without FORMATs) that we've been using all along. Why is that?
Why would you ever want to use formatted input?
Hamlet Project