human
Program for Binomial Coefficients table | Function to print binomial table.
B ( m , x ) is 1 if either m or x is is 0..
Otherwise using recursive formula B ( m , x ) = B ( m , x - 1 ) * ( m - x + 1 ) / x.
Driver Function"
Solution in Python:
assistant
#Here is code to program for Binomial Coefficients table and the other steps required.
 def printbinomial ( max ) :
	for m in range ( max + 1 ) :
		print ( ' % ▁ 2d ' % m , end = ' ▁ ' )
		binom = 1
		for x in range ( m + 1 ) :
			if m != 0 and x != 0 :
				binom = binom * ( m - x + 1 ) / x
			print ( ' % ▁ 4d ' % binom , end = ' ▁ ' )
		print ( " " , end = ' ' )
max = 10
printbinomial ( max )