C-PROM 2014 (PROBLEM 4 :DIVISIBLE NUMBERS)



PROBLEM 4 : DIVISIBLE NUMBERS


In mathematics, “divisible by” means when you divide one number by another number, the result is a whole number. In other words, the remaining balance of the division is zero (0).

For example, 10 is divisible by 2 and 5.


Input

The first line of the input contains the number of test cases which entered by user. Following the first line are the test cases. Each line in a test case contains two non-negative integer number where:

The first number represents the starting point of number in a series.
The second number represents the end point of number in a series.

For example,

20 30   means the series number starts from 20 and ends at 30.

The input must be read from standard input.

Output

The output of the program should print the numbers in the series that can be divisible by 4 and 6.

The output must be written to standard output.

Sample Input
Sample Output

3
10 50
80 120
100 150



12 24 36 48
84 96 108 120
108 120 132 144



Problem Setter : Hawa Mohd Ekhsan


Share this

Related Posts

Previous
Next Post »