Find factorial of a number!

 f = float(input(f'Insert number to find its factorial: '))

i=0

Factorial=1

while f>0 and i<f:

    Factorial*=(f-i)

    i+=1


print(f'Factorial value is {Factorial}')

Comments

Popular posts from this blog

Guess game!

Path for chromedriver