All of the programming exercises for Chapter 5: Basic IO
DISCUSSION QUESTION What is the purpose of a format? What are the three ways to define a format?
DISCUSSION QUESTION What is printed out by the following Fortran statements?
DISCUSSION QUESTION What is printed out by the following Fortran statements?
DISCUSSION QUESTION Read in 5_4.dat and find out what the output will be for the following statements:
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name |
DISCUSSION QUESTION Read in 5_5.dat and find out what the value of each variable will be when the READ statements have been completed
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | file_name |
Generate a table of the base 10 logarithms between 1 and 10 in steps of 0.1