dvela023 dvela023
  • 08-04-2021
  • Computers and Technology
contestada

Write a pseudo code to complete the factorial of 5 recursively and print the value on the screen. I’ll mark brianliest

Respuesta :

60002135330 60002135330
  • 08-04-2021

Answer:

number = int(input('Enter number: '))  

factorial = 1

for i in range(1, number + 1):

   factorial = factorial * i

print(factorial)

You will need to input 5 when you run the code. Or you can add change the "number" to "number = 5"

Answer Link

Otras preguntas

If a chemist analyzes a 3.84g sample containing sand and table sugar, and recovers 1.43g of      sand, what  percent by mass of table sugar should the chemist
discuss the advantages and disadvantages of methods used to reduce the impact of human activity on ecosystem
who came first anglo-saxons or vikings
Some variation must be present in a population in order for natural selection to take place. These variations arise from mutations in the DNA and what?
.  The cost of producing cell phones is represented as C=mx+b, where m is the marginal cost, x is the number of phones produced, b is the fixed cost, and C is t
True or false segments of a tapeworm are called proglottids
Why don't arteries need valves
I need help with my homework can anyone help?
What's the formula for distance?
a rock is dropped into a well hits the water in 5 secs. if there is no air resistance, what would be the rocks final speed?