Skip to content
CampusEduX

Factorial Using Recursion

Easyjavapythonccppjavascript

Given a non-negative integer N, compute N! (the product of all integers from 1 to N; 0! = 1).

Input Format

A single line containing the integer N.

Output Format

Print N!.

Related Problems

  • Fibonacci Number
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Power Using Recursion
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Generate All Subsets
    Medium · java, python, c, cpp, javascript
    Solve Problem

Input (stdin)

Output

Run your code to see output here...