title: Display factors of a number in pairs
body: <p>Given a number n, the task is to print the factors of the number in such a way that they occur in pairs. A pair signifies that the product of the pair should result in the number itself;</p>
  <pre><code>for (int i = 1; i * i &lt;= n; i++)
      if (n % i == 0)
          cout &lt;&lt; i &lt;&lt; &quot;,&quot; &lt;&lt; n / i &lt;&lt; endl;
  </code></pre>
  <p>the code above works but I need the output to display the pair of factors from the middle.</p>
  <p>Example:
  The code above works like this</p>
  <p>Enter a number: 68</p>
  <p>1,68</p>
  <p>2,34</p>
  <p>4,17</p>
  <p>But I need it to be like this</p>
  <p>Enter a number: 68</p>
  <p>4,17</p>
  <p>2,34</p>
  <p>1,68</p>