Powers X74205


Statement
 

pdf   zip

Write a program to compute powers.

Input

Input consists of several pairs of integer numbers aa and bb. Assume b0b\ge 0.

Output

For every pair aa,bb, print aba^b. Supose, as usual, that 00=10^0 = 1.

Observation

The use of power operator ** is not alowed in this exercise.

Public test cases
  • Input

    3 2
    2 8
    5 0
    0 3
    0 0
    -2 3

    Output

    9
    256
    1
    0
    1
    -8
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Official solutions
    Python
    User solutions
    Python