Look at the output line by line and find the relationship between what is printed on a line, which line it is and the number of lines to be printed. When you find the relationship, then write pseudo...