Cody Bable

Generation

generate functionTue, 25 Apr 2023

calculate the product of m x n but without using the * operator

def multiply(m, n): product = 0 for i in range(n): product = add(product, m) return product multiply(5, 3)

Questions about programming?Chat with your personal AI assistant