Code for factorial numbers in python?

1 answer

Answer

1142026

2026-03-18 15:00

+ Follow

Here is my code:

import math

num = int(input())

print(math.factorial(num))

I used a bit of a cheat and imported the math module though.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.