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 functions do proteins,carbohydrates, lipids and nucleic acids perform
what functions do proteins,carbohydrates, lipids and nucleic acids perform
what functions do proteins,carbohydrates, lipids and nucleic acids perform
name the five types of sentences..
what functions do proteins,carbohydrates, lipids and nucleic acids perform
what functions do proteins,carbohydrates, lipids and nucleic acids perform
name the five types of sentences..
name the five types of sentences..
what functions do proteins,carbohydrates, lipids and nucleic acids perform
what functions do proteins,carbohydrates, lipids and nucleic acids perform