Given a positive integer N, print a pattern of numbers in N rows. The first row has number, the second has , and so on. Each row shows consecutive integers starting where the previous row left off.
For N=: 1 2 3 4 5 6 7 8 9 10 Think about what value you print in each position. You need to track a counter that doesn't reset between rows. The row number determines how many values to print, but the counter determines which values.