subject
Engineering, 21.02.2020 05:16 Lawrence101

3. Here is an algorithm to print out n! (n factorial) from 0! to 19!: 1. Set f = 1 2. Set n = 0 3. Repeat the following 20 times: # use range(1,20) although range(20) will also work but not match #5 a. Output n, "! = ", f b. Add 1 to n c. Multiply f by n Using a for loop, write and run a Python program for this algorithm.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
question
Engineering, 04.07.2019 19:10
When subject to a steady load (within elastic range) over a long period of time, what is the major difference in material behavoir between steel and plastic?
Answers: 2
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
You know the right answer?
3. Here is an algorithm to print out n! (n factorial) from 0! to 19!: 1. Set f = 1 2. Set n = 0 3. R...
Questions
question
Mathematics, 26.05.2021 05:50
question
Mathematics, 26.05.2021 05:50
question
Arts, 26.05.2021 05:50
Questions on the website: 13722359