Here is the program for pascal tirangle

removed per posting guidelines

the ncr function is used to calculate the values
and spaces are used to display the it in triangular format

krishna