#C13970. Generate Even Numbers Divisible by Four
Generate Even Numbers Divisible by Four
Generate Even Numbers Divisible by Four
Given two integers start
and end
, generate a list of all even numbers in the inclusive range \([start, end]\) that are also divisible by 4. In other words, for each integer \(n\) in the range, include \(n\) if and only if \(n \% 2 = 0\) and \(n \% 4 = 0\). If no such number exists, output an empty line.
inputFormat
The input consists of a single line with two space-separated integers: start
and end
.
outputFormat
Output the numbers that satisfy the conditions, separated by a single space. If there is no such number, output an empty line.
## sample4 16
4 8 12 16