Mod Divmod - Python Math Solution
Author: Al-mamun Sarkar
Date: 2020-03-26 08:58:20
Mod Divmod - Python Math Solution. The following shows how to solve the HackerRank Mod Divmod Python Math problem.
Code:
a = int( input() )
b = int( input() )
print(a//b)
print(a%b)
print( divmod(a, b) )
Test Input:
177
10
Test Output:
17
7
(17, 7)