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
- Mod Divmod
- Discussions
Mod Divmod
Mod Divmod
Sort by
recency
|
371 Discussions
|
Please Login in order to post a comment
a = int(input()) b = int(input())
print(a//b) print(a%b) print(divmod(a,b))
a = int(input())
b = int(input())
result = divmod(a, b)
print(result[0])
print(result[1])
print(result)