Use while loop to print series of even and odd numbers
<p>I know I'm missing something real simple but I can't seem to get the numbers to print out in rows of just odd or just even numbers using a while loop or loops. Also It keeps printing out "the even numbers are:"/ "the odd numbers are:" for every number. </p>

<pre><code>#include&lt;stdio.h&gt;
#include &lt;iostream&gt;

using namespace std;


int main()
{
    //declare variables
    int number;
    int n;

    cout &lt;&lt; "Enter value less than 100: ";
    cin &gt;&gt; n; //take user input


    while (n &lt;= 100) //loop only if n equals 100 or less
    {
        for(number = n; number &lt;= n; number++) //for loop to increment int value
        {
            if(number % 2 !=0) //determines if odd
            {
                cout &lt;&lt; "The odd numbers are:" &lt;&lt;number &lt;&lt; endl; //prints odd values
            }
        }

        for(number = n;number &lt;= n; number++) // for loop to increment int value
        {
            if(number % 2 ==0) //determines if even 
            {
                cout &lt;&lt;"The even numbers are:" &lt;&lt;number &lt;&lt;endl; //prints even values
            }
        }

        n++;
    }

    return 0; //end of program
}
</code></pre>