Skip to content
CampusEduX

Power Using Recursion

Easyjavapythonccppjavascript

Given integers X and N, compute X raised to the power N.

Input Format

A single line containing two integers X and N.

Output Format

Print X^N (with X^0 = 1).

Related Problems

  • Factorial Using Recursion
    Easy · java, python, c, cpp, javascript
    Solve Problem
  • Fibonacci Number
    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...