C# Load integers and display odd / even
<p>Hello wondering if there is an easier way to display odd / even numbers.
I know I could do a for loop and load a list.  Then I can write another for loop
to loop through the list and check if a value is odd / even:</p>

<pre><code>for(i=0; i&lt;100; i++)
 if(myList[i]%2==0) //even
    //do something
 else
    //odd do something
</code></pre>

<p>But is there any way to shorten this up just so that I can easily get a list of odd or even numbers.  Not homework just wondering.</p>
