human
Sum of all products of the Binomial Coefficients of two numbers up to K | Function returns nCr i . e . Binomial Coefficient.
Initialize res with 1.
Since C ( n , r ) = C ( n , n - r ).
Evaluating expression.
Driver Code"
Solution in Python:
assistant
#Here is code to sum of all products of the Binomial Coefficients of two numbers up to K and the other steps required.
 def nCr ( n , r ) :
	res = 1
	if ( r > n - r ) :
		r = n - r
	for i in range ( r ) :
		res *= ( n - i )
		res //= ( i + 1 )
	return res
if __name__ == ' _ _ main _ _ ' :
	n = 3
	m = 2
	k = 2
	print ( nCr ( n + m , k ) )