Instead of going with the loops , we can also go with arrays . We can consider a big array and we can break the entire array into smaller parts in terms of [i][j] .
Now to completely understand the working of the code , we need to understand the pascal triangle , which is easily explained in the above video.
Have a look at the below attached file to see the program of pascal triangle in terms of array.
Please have a pen and paper nearby to understand this program.
draw a big 10*10 matrix and then go according to the program.