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

  1. 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).
  2. write a script that does the same as (A) using the for loop.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!