You are viewing a single comment's thread. Return to all comments →
import math a = int(input()) b = int(input()) m = int(input()) print(pow(a,b)) print(pow(a,b,m))
Power - Mod Power
You are viewing a single comment's thread. Return to all comments →