Generation

generate functionWed, 17 May 2023

PROGRAMA QUE CALCULE EL FACTORIA DE UN NUMERO ENTERO CUALQUIERA POR EJEMPLO FACTORIAL DE 3 JERIA 3*2*1=6) FACTORIAL DE 5 SERIA 5*4*3*2*1=120]

++ def factorial(num): i = num factorial = 1 while i >= 1: factorial = factorial * i i = i - 1 return factorial factorial(3)

Want to kickstart your project?Use the new AI Studio to create your code