subject
Engineering, 30.10.2019 20:31 Greenrune113

Write a program that lets a user enter n and that outputs n! (n factorial, meaning n*(n-1)*(n-2)*..\.\*2*1). hint: initialize a variable total to n (where n is input), and use a loop variable i that counts from total-1 down to 1. compare your output with some of these answers: 1: 1, 2: 2, 3: 6, 4: 24, 5: 120, 8: 40320.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Amixture of slurry and mud is to be pumped through a horizontal pipe of diameter 500 mm. the fluid behaves as a bingham plastic with a yield stress of 30 pa and viscosity 0.04 pa.s. describe the effects of the shear stress through a transverse section of the pipe by plotting the variation in shear stress and velocity profile: (i) just before the slurry starts to move (ii) as the slurry flows when the pressure gradient is double that in part (i)
Answers: 3
question
Engineering, 04.07.2019 19:10
The sum of the normal stresses does not change as the stress state rotates through an angle. a)-trune b)- false
Answers: 2
question
Engineering, 04.07.2019 19:10
Aplate of dimensions 3 m x 3 m is placed 0.37 mm apart from a fixed plate. the plate requires a force of 2n to move at speed of 45 cm/s. evaluate the viscosity of the fluid in between the plates
Answers: 3
question
Engineering, 06.07.2019 03:30
An ammonia compressor has a 5% clearance volume and displacement rate of 80 l/s and pumps against a condensing temperature of 40°c. for two different temperatures of -10°c and 10°c, compute the mass flow rate of refrigerant assuming the clearance volumetric efficiency applies. discharge specific volume corresponding to-10°c and 10°c are 112.5 l/kg and 95 l/kg, respectively.
Answers: 2
You know the right answer?
Write a program that lets a user enter n and that outputs n! (n factorial, meaning n*(n-1)*(n-2)*.....
Questions
question
English, 01.03.2021 18:20
question
English, 01.03.2021 18:20
question
Mathematics, 01.03.2021 18:20
question
Chemistry, 01.03.2021 18:20
question
Mathematics, 01.03.2021 18:20
Questions on the website: 13722367