You are viewing a single comment's thread. Return to all comments →
Here is the Python3 code for the Problem.... it is simple and understandable
a=int(input()) b=int(input()) m=int(input()) new=pow(a,b) print(new) new1=pow(a,b,m) print(new1)
Seems like cookies are disabled on this browser, please enable them to open this website
Power - Mod Power
You are viewing a single comment's thread. Return to all comments →
Here is the Python3 code for the Problem.... it is simple and understandable
a=int(input()) b=int(input()) m=int(input()) new=pow(a,b) print(new) new1=pow(a,b,m) print(new1)