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

What do you like or dislike about Rainsford? Explain
What is a thesis statement for Romeo and Juliet about hate?
Solve 4y-70=12y+2 explain
Why did Darwin use selective breeding evidence for evolution
Solve 4y-70=12y+2 explain
How many degrees are there in the angle formed by two adjacent sides of a regular nonagon (nine-sided polygon)?
Towns A and B are 400 miles apart. If a train leaves A in the direction of B at 50 miles per hour, how long will it take before that train meets another train,
Mice and rabbits eat plants.Hawks eat mice and rabbits.Suppose a disease kills most of the rabbits In a meadow ecosystem.Which of These is LEAST LIKELY to happe
What is a "pipel"? (Holocaust def.)
Shield volcano type of eruption?