title: printing a right triangle in mips
body: <p>This is the code I wrote to try to solve this.
  My code to endl; is not getting looped at all, and it seems to only print two stars for any number entered.</p>
  
  <pre><code>li $t1,1 #start row at 1
  li $t2,1 #start col at 1
  li $t3,0 #temp=0
  
  outer:
  bgt $t1,$t0,done  #row &lt; user input
  addi $t1,$t1,1 #row++
  
  
  
  inner:
  bgt $t2,$t1,done  #col&lt;row
  addi $t2,$t2,1 #col++
  
  #print star
  la $a0,Star
  li $v0,4
  syscall
  
  addi $t3,$t3,1 #adds 1 to temp after every print
  
  beq $t2,$t3,outer #if col = temp counter  jump to outer
  
  j inner #restart loop
  
  #code to endl;
  la $a0,endl
  li $v0,4
  syscall
  
  j outer #restart loop
  </code></pre>
  
  <p>Here is an example of the  expected output:</p>
  
  <pre><code>Please enter the edge length of the base of right triangle: 5 
  * 
  ** 
  *** 
  **** 
  ***** 
  </code></pre>