title: C program that displays all numbers in between the two integer inputs in ascending order
body: <p>I tried to do this activity but there is always an extra &quot;result&quot; in the output
  output:</p>
  <pre><code>Enter integer a:10
  Enter integer b:1
  
  Result: 1
  Result: 10
  Result: 9
  Result: 8
  Result: 7
  Result: 6
  Result: 5
  Result: 4
  Result: 3
  Result: 2
  Result: 1
  Result: 0
  </code></pre>
  <p>ideal output:</p>
  <pre><code>Enter integer a:10
  Enter integer b:1
  Result: 10
  Result: 9
  Result: 8
  Result: 7
  Result: 6
  Result: 5
  Result: 4
  Result: 3
  Result: 2
  Result: 1
  </code></pre>
  <pre><code>#include &lt;stdio.h&gt;
  
  main() {
    int a;
    int b;
  
    printf(&quot;Enter integer a:&quot;);
    scanf(&quot;%d&quot;, &amp;a);
  
    printf(&quot;Enter integer b:&quot;);
    scanf(&quot;%d&quot;, &amp;b);
  
    do {
      printf(&quot;Result: %d\n&quot;, b);
      b--;
    } while (a &lt;= b);
  
    do {
      printf(&quot;Result: %d\n&quot;, a);
      a--;
    } while (a &gt;= b);
  }
  </code></pre>