Write a program that takes two number by user input and display output
Program/Code:
Program/Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | org 100h mov ah, 1 int 21h ;take input a character ;and store it in al mov bl, al int 21h ;take input a character ;and store it in al sub al, 30h sub bl, 30h add al, bl mov ah, 2 add al, 30h mov dl, al ;take output a character ;and show it by dl int 21h ret ;Output 437 first two is input by user third one is output |
No comments:
Post a Comment