next up previous contents
Next: Solution Up: Input and Output Previous: Solution

 

Formatted IO

Given the statement:

  READ(*,'(F10.3,A2,L10)') A,C,L

what would the variables A (a real), C (a character of length 2), L (a logical) contain when given the following input? (Note: b signified a blank space.)

  1. bbb5.34bbbNOb.TRUE.
  2. 5.34bbbbbbYbbFbbbbb
  3. b6bbbbbb3211bbbbbbT
  4. bbbbbbbbbbbbbbbbbbF

Go back to Notes gif




next up previous contents
Next: Solution Up: Input and Output Previous: Solution

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.