
SELF TEST on READLN
Assuming that we made the following declaration
var C1, C2, C3, C4, C5, C6 : char;
and that the user types
ABCDE
FOR EACH LINE, then what would each of the following statements
assign to the various variables,
readln( C1 ); C1 = __
readln( C2 ); readln( C3 ); C2 = __ C3 = __
readln( C4, C5, C6 ); C4 = __ C5 = __ C6 = __
readln; _________________________
C1 = A
C2 = A C3 = Waits for new input line
C4 = A C5 = B C6 = C
Copyright B Brown/P Henry/CIT, 1988-1997. All rights reserved.