kinza


{ City }
< Country > pakistan
* Profession *
User No # 120106
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 7
Questions / { kinza }
Questions Answers Category Views Company eMail




Answers / { kinza }

Question { 5340 }

write a program whose output will be-
1
12
123
1234
12345

in assembly language


Answer

org 100h
.model small
.stack 100h
.data
.code
mov cx,1
mov bx,1
l1:
mov cx,bx

l2:
cmp cx,6
jz exit
mov dx,cx
add dx,30h
mov ah,02h
int 21h
loop l2
inc bx

mov dl,10
int 21h
mov dl,13
int 21h

loop l1

exit:
ret

Is This Answer Correct ?    3 Yes 7 No