title: Simple logic problem: Finding largest and smallest number among 3 numbers
body: <p>I am creating a pseudocode in determining the smallest and largest number among 3 numbers:</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>If (x &gt;= y)  
     largest = x
     Smallest = y
  Else 
      largest = y
      Smallest =x
  
  If (z &gt;= largest)
      Largest = z
  If (z &lt;= smallest)
      Smallest = z
  </code></pre>
  
  <p>Do you think this is correct? or are there better ways to solve this?</p>