title: MIPS help (convert from c++) - Initializing an array of integers and computing the max
body: <p>I need help converting this C++ code into MIPS assembly language.</p>
  
  <pre><code>int arr[10];
  int min = 10000;
  int max = -10000;
  for (int i=0; i&lt;10; i++)
      cin &gt;&gt; arr[i];
  
  for (int i=0; i&lt;10; i++) {
      if (arr[i] &lt; min)
          min = arr[i];
      if (arr[i] &gt; max)
          max = arr[i];
  }
  </code></pre>