An array of arrays need not have all of its components of the same length.

The resulting structure is called "a ragged array".

This program creates and prints a triangular array.