Power - Mod Power

  • + 0 comments

    For Python3

    I guess this is as simple as it can get. If anyone didn't understand, feel free to comment and I will try to explain

    a = int(input())
    b = int(input())
    m = int(input())
    
    print(pow(a, b))
    print(pow(a, b, m))