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, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
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
Mathematics, 31.03.2021 01:20
question
Mathematics, 31.03.2021 01:20
question
Chemistry, 31.03.2021 01:20
Questions on the website: 13722363