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:
- The pyramid is a two-dimensional structure: it's useful to use two nested for loops, one for each dimension
- The outer for loop moves the cursor from top to bottom
- The inner for loop move the cursor from the left to the right; don't print a new line until each line is complete
- 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