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

User OwenP
by
4.6k points

1 Answer

2 votes

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"

User Dwelch
by
3.8k points