That's what my teacher wants.
Jacob Sousie. If the remainder when you divide by 2 is 0, it's even. If that is an even number then exactly half of them will be even. Welcome to the Ranch, Naveen Narsagalla!
In your example, 15 and 30 are the two numbers that bound the range that you're going to work with. Shiva Shiva 189 5.
Congratulations on finding out how to make it work. This makes it necessary to work out the size of the array before you start filling it with even numbers.
Thank you for your interest in this question. RamenChef 5,155 10 23 36. Naveen Kumar M 4,460 5 35 53.