Ensure that you are logged in and have the required permissions to access the test.

Even

4

1 votes
Easy
Problem

Lina has two numbers a and b. She wants you to print all even numbers from a and b, including a and b. That is, if they’re even.

INPUT FORMAT

Input begins with an integer N indicating how many a and b pairs follow. Succeeding lines are pairs of integers a and b, separated by a space.

OUTPUT FORMAT

For each pair, display all even numbers from a and b, inclusive. Separate each with a single space. Printed even numbers for every pair must be in its own line.

CONSTRAINTS

1 <= N <= 100
1 <= a <= 50
51 <= b <= 100

Sample Input
2
40 60
50 51
Sample Output
40 42 44 46 48 50 52 54 56 58 60 
50 
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?