IDNLearn.com: Your destination for reliable and timely answers to any question. Explore a wide array of topics and find reliable answers from our experienced community members.

Write a pseudo code to complete the factorial of 5 recursively and print the value on the screen. I’ll mark brianliest

Sagot :

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"

We appreciate your participation in this forum. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. Thank you for choosing IDNLearn.com. We’re dedicated to providing clear answers, so visit us again for more solutions.