Programming Examples
Python program of modulus
Program of modulus
Solution
num1=int(input("Enter first number:"))
num2=int(input(" Enter second number"))
remainder=num1%num2
print("Remainder:",remainder)
Output/ Explanation:
Enter first number:7
 Enter second number2
Remainder: 1