Generation

generate functionTue, 18 Jul 2023

multiplicar un numero en bucle while

def mult_while(a, b): result = 0 while b > 0: result += a b -= 1 return result

Questions about programming?Chat with your personal AI assistant