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

if it cost 100$ to stay the night at ronald mcdonald facilty how many pull tabs will the class need to contribute, base on your data for a family to have to nig
Lightning strikes are unpredictable because
You need to contact a client on the phone. You have estimated that you have a 70% chance of contacting the client on the first call. If you don't, you estimate
I’ll mark you brainliest if you help me. Not sure if I’m right
what would happen if the earth did not have an atmosphere?
Question 2(Multiple Choice Worth 2 points) (02.05 MC) Solve x2 + 12x+6=0 using the completing-the-square method.
Why does Officer Delinko get called to a construction site? What is his concern as he leaves the scene?
Show work with this problem please and thank you also see attached pictures for the other problems
Which options identify a key point of cell theory? (Select all that apply.) Cells carry out functions that maintain life. Living things are nde of one or more c
Can you please help me with this