How To Print Factorial Of Given Number
#FACTORIAL OF GIVEN NUMBER
print('FACTORIAL OF GIVEN NUMBER ')n=int(input('Enter Number = '))
x=''
for i in range (-n,-1):
x=x+str(-i)+' * '
x=x+'1'
print('The Factorial Sequence of ',n,'! :- ',x)
y=1
for j in range(-n,-1):
y=y*(-j)
print('The Value of ',n,'! = ',y)
Made By :-
Nilay Saraf
Comments
Post a Comment