Question: Write a code for the two A & B displaying comments of your algorithms python 3.xx calculates 5! (the factorial of 5) using a while
Write a code for the two A & B displaying comments of your algorithms python 3.xx
- calculates 5! (the factorial of 5) using a while loop statement. 5! = 1*2*3*4*5. You can verify a result by comparing it to math.factorial(x).
- write a script that does the same as (A) using the for loop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
