Power Without Pow Problem
Power Without Pow Problem — ExecCode School DSA Practice
Solve the Power Without Pow problem on ExecCode. Free online school DSA practice in Math. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Given two integers x and n, calculate x raised to the power n without using any built-in power function. Your task is to solve Power Without Pow. Print the result.
Examples
Input 2 3; Output 8. Input 3 2; Output 9
Constraints
0 <= n <= 10^4, -100 <= x <= 100
Practice Power Without Pow free on ExecCode. Browse DSA problems, topic map, and placement guides.