Python Program to display even numbers between m and n
A number which is divisible by 2 and gives remainder 0 then it called as even number and rest of the numbers called as odd numbers.
Input:
11 20
Output:
12
14
16
18
20
Explanation:
m=11,n=20
even numbers between 11,20 are 12, 14, 16, 18, 20.
Code:
m,n=map(int,input().split())
x=m
if(x%2!=0):
x+=1
while x>=m and x<=n:
print(x)
x+=2
Note:
Hello Guys, Don't Stop Learning keep Going..............