Factorial program
>>OPen your Python IDE.
>>Copy the below code in new document.
>>Save it and, simply run.
>>Input
| Source code of program |
>print("create factorial program")
>number = int(input("enter value: "))
>product = 1
>for i in range(number):
> print(range)
> product = product * (i+1)
> print(product)
>final= input("press enter to exit")
>>Output
After the code runs Let's think, if we choose the number 5. |
Download paid apps for free.
Motorola moto g5 plus for 14999/- from flipkart.
