Question #270936

"Even" Now

by CodeChum Admin

I'm really fond of even numbers, you know? That's why I'll be letting you make another even number problem yet again. This time, you need to print from a range of two inputted numbers, n1 and n2 (inclusive), all the even numbers from n2 down to n1, in descending order.

How about that?


Input

A line containing two integers separated by a space.

3·10

Output

Multiple lines containing an integer.

10
8
6
4




Expert's answer

n1, n2 = input().split()
n1, n2 = int(n1), int(n2)
for i in range(n2, n1-1, -1):
	if i%2 == 0:
		print(i)
LATEST TUTORIALS
APPROVED BY CLIENTS