InterviewSolution
Saved Bookmarks
| 1. |
Write a program to find the factorial of a number in python |
|
Answer» Answer: The given códe is written in Python 3. n=int(input("Enter a number: ")) F=1 for i in range(2,n+1): f=f * i print("Factorial:",f) LOGIC:
See the ATTACHMENT for output. •••♪ |
|