title: How to Find every other odd number from 0 to 9
body: <p>Hello all I have been trying to get every other odd number from 0 - 9 and I almost got it working but for some reason It's giving me 3 and 7 instead of 3, 7 ,and 9 the I went about solving it like so : </p>
  
  <pre><code>    int i = 0;
      int count = 1;
      for (; i &lt; 10; i++)
      {
          if (i &amp; 1)
          {
              count++;//add one if i is odd
  
              if (count &amp; 1)//if count is odd then its the next odd
                  printf("%d\n", i);//print i
          }
  
      }
  </code></pre>