exercise 1-18
improve printf logic with longline
exercise 1-19