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
|
361 Discussions
|
Please Login in order to post a comment
all you need is to print them using the operators as done above.
x = int(input()) y = int(input()) def divmod(num,divisor): divided = num // divisor mod = num % divisor print(divided) print(mod) return (divided,mod) print(divmod(x,y))