Note this is in the C++ forum, Arizona Web

However, we do need more information. How do you want to write these numbers? Do you want to write them to the screen? To an array? Remember, we can use modular division (%) to pick out even numbers. Mod division is like remainder division. So if we said, check to see if number (n % 2) == 0 it would divide n by 2, and if the remainder was equal to zero, we would know the number was even.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
Offline 13,645 posts
since Feb 2002