Exercise 1-18 Write a program to remove trailing blanks and tabs from each line of input, and to delete entirely blank lines.