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
|
379 Discussions
|
Please Login in order to post a comment
Here is a Simple code of it:
n1=int(input()) n2=int(input()) print(n1//n2) print(n1%n2) print(f"{(n1//n2, n1%n2)}")
For Python3 Platform
a = int(input()) b=int(input()) print(a//b) print(a%b) print((a//b,a%b))