Question: Write a script/code which prompts the user to enter an integer. Then, it calculates and prints the factorial of that number by using: FOR
Write a script/code which prompts the user to enter an integer. Then, it calculates and prints the factorial of that number by using: FOR loop (5p) b. WHILE loop (5p) a. C. The built-in function (5p)
Step by Step Solution
3.42 Rating (146 Votes )
There are 3 Steps involved in it
Below is a simple Python script that accomplishes this task using a FOR loo... View full answer
Get step-by-step solutions from verified subject matter experts
