Divisible Rules

Write a program which will find all such numbers which are divisible by 2 but are not a multiple of 5, between 2500 and 4000 (both included).

The numbers obtained should be printed in a comma-separated sequence on a single line.

Example Solution

If a number is divided by 2 or another number, the remainder is 0.

10 % 2 = 0

Contributed by Fatih Zor