Technical Problem Cluster First Answered On
February 16, 2021
Contributions From The Grepper Developer Community
def fact(a): factl = 1 for i in range(1,a+1,1): factl = factl*i return factl def main(): t = int(input()) for i in range(t): n = int(input()) print(fact(n)) if __name__ == "__main__":main()
Contributed on Feb 16 2021
3 Answers Avg Quality 5/10
Search Code Snippets
Plans & Pricing
Adding a Code Snippet
Viewing & Copying Snippets
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!
Continue with Google
By continuing, I agree that I have read and agree to Greppers's
Terms of Service