title: Print a half pyramid of numbers in assembly
body: <p>I have to write a program in assembly which read a number and print a half pyramid of numbers. </p>
  
  <p>i.e: read 4</p>
  
  <p>print</p>
  
  <pre><code> 1
   1 2
   1 2 3
   1 2 3 4
  </code></pre>
  
  <p>I've understood how to read a number, how to use a loop for print one character per line, but i have to use inner loops and i don't know how to initialise another contor. </p>
  
  <pre><code>.286
  .model small
  .stack 1024h
  .data
  
  .code
  
  mov cx,5
  mov bx,5
  
  cosmin:
  
  mov dl,31h
  mov ah, 2h
  int 21h
  
  mov dl, 0Ah
  int 21h
  
  loop cosmin
  
  end
  </code></pre>
  
  <p>Here i've tried to make a triangle only for one character, but i don't know how to increment the values per each line.</p>
  
  <pre><code>.286
  .model small
  .stack 1024h
  .data
  
  .code
  
  mov cx,5
  mov bx,5
  
  cosmin:
  
  mov dl,31h
  mov ah, 2h
  int 21h
  
  mov dl, 0Ah
  int 21h
  
  loop cosmin
  
  end
  </code></pre>