Python - combination


def combination(m,n):
    if n==0 or m==n:
        return 1
    else:
        return combination(m-1,n)+combination(m-1,n-1)
    
    
m = int(input('please fill m value :'))
n = int(input('please fill n value :'))
ans = combination(m,n)
print(ans)

雅思寫作11/10

  example resulted from chatgpt The line graph illustrates the monthly sales of four bakery products—baked bread, croissants, cupcakes, and ...