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

A restaurant's trading area is A. the 5-mile radius surrounding its location B. the 10-mile radius surrounding its location C. the 15-mile radius surrounding it
ayuda plis es pra hoy
When each additional worker hired contributes less than the previous worker hired to total output, we can say there are (is):_______ a. falling average producti
In order to keep a specific bacteria alive, the tempature in a science lab, cannot exceed -20F. The electricity went out, when the tempature was -72F, but is in
when you cut an onion, what happens to your eyes? what role do you think the onions' central vacuoles have in your reaction?
i neeeeeeeed help 10 points​
What is the slope-intercept form equation of the line that passes through (2, 4) and (4, 10)? (5 points) a y = −3x − 2 b y = −3x + 2 c y = 3x + 2 d y = 3x − 2
The Pi CLPN stands for the macromolecule
Sebastian was in a hotel lobby and took the elevator up 7 floors to his room. Then he took the elevator down 9 floors to the parking garage. He described his mo
(a^2 - b^2)/(2 + d^3) a stands for 6, b stands for 4, d stands for 1 over 2, i need explanation too
good job