Problem 7: Pyramid Of Numbers 1 Hints

Problem 7 is similar in many ways to problem 6, so some of the hints are also similar:

  1. The pyramid is a two-dimensional structure: it's useful to use two nested for loops, one for each dimension
  2. The outer for loop moves the cursor from top to bottom
  3. The inner for loop move the cursor from the left to the right; don't print a new line until each line is complete
  4. The loop test of the inner for-loop (the middle expression) is a function of (i.e., is based on) the loop control variable of the outer loop. That is, the inner loop repeats as long as the inner loop control variable is less than the outer loop control variable