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

Do you think the system of roads in the Assyrian empire worked well?explain?
Supporters of Prohibition, such as preacher Billy Sunday, expected that Prohibition would encourage people to become religious. increase the violent crime rate.
The distance between two adjacent crests of a transverse wave?
Who is the king of the Greek Gods?
The price of a pair of shoes is $45.90. The sales-tax rate is 5 percent. How much sales tax do you need to pay?
Who is regarded as the greatest sculptor of the Early Renaissance? Jan Van Eyck Auguste Rodin Donatello Raphael
y= 6x + 5 is the equation of a straight line graph. what is its gradient?
a plane flies with 54% of its seats empty. if 81 seats are empty what is the total number of seats on the plane
Compare the religious beliefs of the Maya, the Aztecs, and the Inca. How were they similar? How were they different?
A solid geometric shape formed by a mineral is called