05-29-2012
676,
217
Join Date: Jun 2009
Last Activity: 1 May 2020, 6:28 AM EDT
Location: India
Posts: 676
Thanks Given: 30
Thanked 217 Times in 215 Posts
Hi
The idea is to print the last line along with the second column of the current line. To get the last line, we store the current line in x which in turn becomes the last line in the next iteration.
Guru.