Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Implement pow(x, n), which calculates x raised to the power n (xn).


Example 1:

Input: 2.00000, 10
Output: 1024.00000
Example 2:

...