Exercise 1.19

Program reverses each line of input.