title: How to find the greatest of more than two input numbers
body: <p>I was able to write an LMC program which finds the greater value of <em>two</em> input values. But how do I modify it to find the greatest value of any number of input values, not only two?</p>
  <p>Below is my code:</p>
  <pre><code>START    INP 
           STA NUM1
           INP
           STA NUM2
           LDA NUM1
           SUB NUM2
           BRP Positive
           LDA NUM2
           OUT
           HLT
  Positive LDA NUM1
           HLT
  NUM1     DAT
  NUM2     DAT
  </code></pre>