Pow(x, n)
Medium📝 Description
Implement pow(x, n) that calculates x raised to the power n
Input Format
Base x and exponent n
Output Format
x raised to power n
Constraints
-100.0 < x < 100.0 -2^31 ≤ n ≤ 2^31-1
🔍 Sample Input
2.00000
10
✅ Sample Output
1024.00000
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run