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

How would a fast-flowing river be most likely to move sand-sized particles of sediment?
How do the sun, earth, and moon affect each other??
Industry that requires a large capital investment and that produces items used in other industries is known as _____. a.a heavy industry b.the auto industry
Find the 30in term if the following sequence 1, 7, 13, 19
conrad has a book about the outdoors, and 2/5 of the book is about camping. Conrad has read 1/3 of the section on camping. What part of the book has conrad read
When you have had to work with others to make a group decision,you have usually:?
What is the Common Difference for the following sequence? 2/3 , 1/3 ,0, -1/3 ,2/3 ,⋯,
What was the name of the weak government of germany created after world war i?
before the building of the transcontinental railroad,there were three ways to get across the country ,name them three?
how do I solve question 18