calculate the product of m x n but without using the * operator. Use both functions below def add(m, n): if m == 0: return n if n == 0: return m return add(m, succ(n)) def succ(n): return n +1
def add(m, n): if m == 0: return n if n == 0: return m return add(m, succ(n)) def succ(n): return n +1 def mul(m,n): if n == 0: return 0 return add(m, mul(m, pred(n))) def pred(n): if n == 0: return 0 return n -1 mul(2,3)