Powers P79817


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.

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
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan German Spanish French
    Official solutions
    C++ Java Pascal Python
    User solutions
    C C++ Java Python