title: Having trouble sorting numbers with only if else statments
body: <p>For this assignment my professor tasked me with creating a program that asks the user to input 3 integer numbers and prints them out in order from bigger to smaller.
  Ex: input is 10, 4, 6    the output should be  10, 6, 4 
  I am only allowed to use if else statements and this is what I have so far but when I compile it says my variable position_1 - position_3 are not initiallized and I am also having trouble on my output.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
  int x;
  int y;
  int z;
  int position_1;
  int position_2;
  int position_3;
  
  cout&lt;&lt;"Please enter your first integer value"&lt;&lt;endl;
  cin&gt;&gt;x;
  cout&lt;&lt;"Please enter your second integer value"&lt;&lt;endl;
  cin&gt;&gt;y;
  cout&lt;&lt;"Finally enter your third integer value"&lt;&lt;endl;
  cin&gt;&gt;z;
  
  if(x&gt;y &amp;&amp; x&gt;z)
  x=position_1;
  else if (x  &gt;y &amp;&amp; x &lt; z)
  x=position_2;
  else if (x &lt;y &amp;&amp; x &gt; z)
  x=position_2;
  else 
  x=position_3;
  
  if(y&gt;x &amp;&amp; y&gt;z)
  y=position_1;
  else if (y &gt;x &amp;&amp; y &lt; z)
  y=position_2;
  else if (y &lt;x &amp;&amp; y &gt; z)
  y=position_2;
  else 
  y=position_3;
  
  if(z&gt;x &amp;&amp; z&gt;y)
  z=position_1;
  else if (z &gt;x &amp;&amp; z &lt; y)
  z=position_2;
  else if (z &lt;x &amp;&amp; z &gt; y)
  z=position_2;
  else 
  z=position_3;
  
  cout&lt;&lt;position_1 + " " + position_2 + " " + position_3.\n;
  
  system("pause");
  return 0;
  }
  </code></pre>