We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Power - Mod Power
- Discussions
Power - Mod Power
Power - Mod Power
+ 0 comments import math a = int(input()) b = int(input()) m = int(input()) print(pow(a,b)) print(pow(a,b,m))
+ 0 comments > a, b, c = (int(input()), int(input()), int(input())) > print(pow(a,b)) > print(pow(a, b, c))
+ 0 comments a,b,m = int(input()),int(input()),int(input()) print(pow(a,b),pow(a,b,m),sep='\n')
+ 0 comments A simple solution
a = int(input()) b = int(input()) m = int(input())
x = (a**b) print(x)
y = pow(a,b,m) print(y)
+ 0 comments A simple solution
a = int(input()) b = int(input()) m = int(input())
x = (a**b) print(x)
y = pow(a,b,m) print(y)
Load more conversations
Sort 253 Discussions, By:
Please Login in order to post a comment