# My way of finding factorials import math print("Enter the number") n=int(input()) print(math.factorial(n))
@SaheelDeshpandeIITM6 ай бұрын
lol
@RudrakshGupta12 ай бұрын
Prof. is showing the way by which this library function is made up.
@umarulf2 ай бұрын
super nd
@meriid70173 ай бұрын
Dhnaywaad
@muralikrishna5729 Жыл бұрын
An alternate approach: a = int(input('Enter a number: ')) b = a print('The factorial is: ') while(a!=1): b = b * (a-1) a = a-1 print(b) --------------OR--------------------- a = int(input('Enter a number: ')) b = a if(a
@MinuteMarvelswithsameerАй бұрын
This code failed to find factorial of negative numbers
@054_nirajkumar33 жыл бұрын
थैंक्यू
@SuryaPrakashbabul Жыл бұрын
How did you assigned number value to n
@MUTHU_KRISHNAN_K7 ай бұрын
Sir has used " int " in front of input () function