Python Modulus

Description

Python program to get two integer numbers, divide both the integers and dispaly the remainder.
Sample Input 1:
6
5
Sample Sample Output 1:
1
Input2:
28
4
Output2:
0

Solution

num1=int(input("Enter First number:"))
num2=int(input("Enter second number:"))
remainder=num1%num2
print(remainder)

Explanation

Read two inputs using input() method.
Conver it into integer by int() method.
Add it using + operator.