InterviewBit Academy is now Scaler!
Learn Tech Skills from Scratch @ Scaler EDGE

Large Factorial


Problem Description

Given a number A. Find the fatorial of the number.



Problem Constraints

1 <= A <= 100



Input Format

First and only argument is the integer A.



Output Format

Return a string, the factorial of A.



Example Input

Input 1:

A = 2

Input 2:

A = 3



Example Output

Output 1:

 2

Output 2:

 6



Example Explanation

Explanation 1:

2! = 2 .

Explanation 2:

3! = 6 .



NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.
Start solving Large Factorial on Interview Code Editor
Hints
  • Hint 1
  • Solution Approach
  • Complete Solution
Asked In:

Discussion


Loading...
Click here to start solving coding interview questions