#C560. Numbers Divisible by Three
Numbers Divisible by Three
Numbers Divisible by Three
Given two integers start and end, find all the integers in the interval \([start, end)\) that are divisible by 3. Formally, you need to find all numbers \(x\) such that:
\( start \le x < end \quad \text{and} \quad x \bmod 3 = 0 \)
Print the resulting numbers separated by a single space. If there are no such numbers, the output should be empty.
inputFormat
The input consists of two integers start
and end
separated by space.
outputFormat
Output all integers within the interval [start, end) that are divisible by 3, separated by a single space. If there are no such numbers, output nothing.
## sample1 10
3 6 9