Powers X74205


Statement
 

pdf   zip

thehtml

Write a program to compute powers.

Input

Input consists of several pairs of integer numbers a and b. Assume b≥ 0.

Output

For every pair a,b, print ab. Supose, as usual, that 00 = 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