56.asm
lima21bd_Heaven-of-Assembly/56.asm
.model small
.stack 100h

.data
a db 'Triangle using nested loop concept $'

.code

main proc
    
    mov ax , @data
    mov ds , ax
    
    mov ah , 9
    lea dx , a
    int 21h
    
    mov ah , 2
    mov dl , 10
    int 21h
    mov dl , 13
    int 21h
    
    mov cx , 5
    
    level1:
    
    mov bx , cx
    
    level2:
    
    mov ah , 2
    mov dl , '+'
    int 21h
    loop level2
    
    mov ah , 2
    mov dl , 10
    int 21h
    mov dl , 13
    int 21h
    
    mov cx , bx
    loop level1
    
    exit:
    
    mov ah , 4ch
    int 21h
    main endp

end main