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 →

  • petes40
    11 months ago+ 0 comments

    Non-recursive python solution...

    n = int(input())
    
    fact = 1
    while n > 1:
        fact *= n
        n -= 1
    
    print(fact)
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy