Power Function

Easy

📝 Description

Implement a function to calculate x^n

Input Format

Base x and exponent n

Output Format

x raised to power n

Constraints

-10 ≤ x ≤ 10 0 ≤ n ≤ 10

🔍 Sample Input

2 3
            

✅ Sample Output

8
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run