Calculate Power of a Number
Given a double number, x, and an integer, n, write a function to calculate x raised to the power n.
We'll cover the following
Statement
Given a double number, , and an integer, , implement a function to calculate raised to the power .
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.