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 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:20
Describe one experiment in which the glass transition temperature and melting temperature of a totally amorphous thermoplastic material can be determined. show the relevant experimental results in a diagram which should be properly annotated with the two temperatures clearly marked. what is likely to happen to the curve in the diagram if the amorphous polymer is replaced by a thermosetting type?
Answers: 2
question
Engineering, 06.07.2019 03:10
Asolid steel sphere (k=63.9 w m-1 k-1 , ? =7832 kg m-3 , c=0.523 kj kg-1 k-1 ), 100 mm in diameter is initially at a uniform temperature of 500o c and is suddenly quenched in a large oil bath for which t? = 100o c and h = 3200 w m-2 k-1. estimate the time required for the sphere to cool to 200o c and to 110o c
Answers: 1
question
Engineering, 06.07.2019 03:20
Avertical steel rod of length 2.0 m and diameter 25 mm is rigidly fixed at its upper end and has a flange at its lower, free, end. what will be the maximum stress produced in the rod when a load of 20 kn is applied, (a) gradually to the lower end, (b) suddenly to the lower end, (c) by a collar falling from a height of 50 mm on to the flange?
Answers: 3
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, 02.02.2020 21:52
question
Computers and Technology, 02.02.2020 21:52
question
Mathematics, 02.02.2020 21:52
question
Mathematics, 02.02.2020 21:52
Questions on the website: 13722363