We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Apply
  • Hiring developers?
  1. Prepare
  2. Security
  3. Terminology and Concepts
  4. Security Encryption Scheme
  5. Discussions

Security Encryption Scheme

Problem
Submissions
Leaderboard
Discussions

    You are viewing a single comment's thread. Return to all comments →

  • d3lvx
    1 year ago+ 0 comments
    def factorial(x):
        if x == 1:
            return 1
        else:
            return x * factorial(x-1)
            
    print(factorial(int(input())))
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy