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

The protestant Re-formation attempted to relate in the Bible to the
according to the poem martin fierro how can sad man find comfort
How many solutions will this system of equations have? y = 3.5x − 3.5 y = −3.5x + 3.5The answer is not No solutions
Please help!!!!I will give Thanks and Brainliest
Which of the following factors DID NOT contribute to the Great Depression? A- Europe was struggling to recover from World War I. B- Banks made fewer loans to E
Which TWO sentences avoid incorrect shifts in verb voice? A.) When Jen entered the room, the door was locked behind her. B.)Amy opened her wallet, and 20 dollar
After it defeated china in the opium war, Britain took control of which Chinese Island ? A- Shanghai B- Taiwan C- Manchuria D- Hong Kong PLEASE HELP ASAP!!!!
can talk help me with these three word problems
what is the best reason to use a cluster map?
Next the researchers repeated the experiment in part c but instead of mixing the ax and ay strains, they put one strain on each side of a glass u-tube. the u-tu