+ 6

Plz check my python code of finding the factorial of a no......i am not getting the correct answer

14th Jun 2019, 10:01 AM
AAYUSH PAGARE🇮🇳
AAYUSH PAGARE🇮🇳 - avatar
3 odpowiedzi
+ 5
It doesn't work, because, you only multiplied it by itself, so it's just giving you the square of the number https://code.sololearn.com/cGVd1YtPgThj/?ref=app
14th Jun 2019, 10:08 AM
Airree
Airree - avatar
+ 5
Thanks now I understood
14th Jun 2019, 10:19 AM
AAYUSH PAGARE🇮🇳
AAYUSH PAGARE🇮🇳 - avatar
+ 3
You could also do it using a factorial. I linked one showing how it works (with comments)👍🏼 https://code.sololearn.com/cR5vZ2Im19DB/?ref=app
14th Jun 2019, 11:18 AM
Trigger
Trigger - avatar