title: C++ While Loop: Hex & Oct, & Dec
body: <p>I'm currently working on a code that:</p>
  
  <blockquote>
    <p>takes 2 decimal numbers which are then displayed converted in octal, and hexadecimal, as well as in their original format, in a compact viewing table. </p>
  </blockquote>
  
  <p>Currently, I'm restricted to a <code>while</code> loop. and the code looks like:</p>
  
  <pre><code>cout &lt;&lt; "Enter in two hexadecimal numbers that will be the beginning and end\n";
  while (num1 &lt;= num2){
      // takes 2 hexadecimal inputs
      cin &gt;&gt; hex &gt;&gt; num1; cin &gt;&gt; hex &gt;&gt; num2; 
  
      cout &lt;&lt; "Decimal\tOctal\tHexadecimal\n";
      cout &lt;&lt; "***********************************\n";
  </code></pre>
  
  <p>It's not much, but this has been eating away at me for some time. I currently have no idea how to approach this.</p>
  
  <p>Note: I don't know what to increment, or if I need another variable. If you could give advice, or point me in the right direction that would be great. </p>