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
- Integers Come In All Sizes
- Discussions
Integers Come In All Sizes
Integers Come In All Sizes
+ 0 comments def func(a, b, c, d): result = a**b + c**d return result a = int(input()) b = int(input()) c = int(input()) d = int(input()) value = func(a, b, c, d) print(value)
+ 0 comments a,b,c,d = [int(input()) for _ in range(4)] print(a**b + c**d)
+ 0 comments import math a = int(input()) b = int(input()) c = int(input()) d = int(input()) ab = (pow(a,b)) cd = (pow(c,d)) total = ab + cd print(total)
+ 0 comments a=[int(input()) for x in range(4)]
print(f"{a[0]**a[1]+a[2]**a[3]}")
+ 0 comments a=[int(input()) for x in range(4)] print(f"{a[0]**a[1]+a[2]**a[3]}")
Load more conversations
Sort 337 Discussions, By:
Please Login in order to post a comment