Computer Science, asked by manavrawat82, 6 months ago

d. Consider the following python program, intended to calculate factorials: 3

number = int(input(‘enter number’))

n, result = number, 1

while True or n :

result = result * n

n = n-1

factorial = result

print(‘factorial of’, number ,’is’, factorial)

I. What happens when the user enters a value 5.

II. How would you fix this program?​

Answers

Answered by dh6896114
0

country articles and pizza party

Similar questions