title: I'm writing this program to find double digit odd numbers in a single number and I'm stuck
body: <p>I'm writing this program to find double digit odd numbers in a single number and I'm stuck.</p>
  <p>For ex- <strong>In the number 56789 there are two double digit odd numbers: 67 &amp; 89.</strong> I've written the code for this:</p>
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  int main()
  {
      int num,rem=0;
      int odd=0;
      printf(&quot;Enter a number: &quot;);
      scanf(&quot;%d&quot;,&amp;num);
      while(num&gt;0)
      {
          rem=(num%100);
          printf(&quot;%d\n&quot;,rem);
          if(rem%2!=0)
          {
              odd++;
          }
          num=num/10;
          
      }
      printf(&quot;Odd digits count is: %d&quot;,odd);
      return 0;
  }
  </code></pre>
  <p><strong>Here's my problem:</strong></p>
  <p><a href="https://i.stack.imgur.com/UwbS4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UwbS4.png" alt="Input: 56789, output: &quot;89\n78\n67\n56\n5\nOdd digit count is: 3&quot;" /></a></p>
  <p><strong>Expected Output:</strong>
  <strong>67
  89
  Total number of odd digit numbers: 2</strong></p>