Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 270 Bytes

File metadata and controls

12 lines (9 loc) · 270 Bytes

Problem 7: Binary Exponentiation (Pow(x, n))

Problem Statement

Implement pow(x, n), which calculates x raised to the power n (i.e., $x^n$).

Input Format

  • A float x.
  • An integer n.

Example

Input: x = 2.00000, n = 10
Output: 1024.00000