The program presented below does this calculation. Notice the use of a symbolic constant for determining the array dimensions. This facilitates future modifications if different information from Pascal's triangle is required. A is actually used. Program to compute first 13 rows of Pascal's triangle.
All output is with formatted print statement.
The dynamic allocation of multi-dimensional arrays can be a bit tricky. In fact, to properly allocate a dynamic multi-dimensional array, we would have to go through an iterative process of allocating arrays of arrays, which in turn means that we have to deal with pointers to a degree that we probably don't yet want.