Presentation is loading. Please wait.

Presentation is loading. Please wait.

Program.-(9)* Write a program Input two numbers from keyboard and multiply of given values using by variables. 1 Input value No 1 2 input value No2 3Multiply.

Similar presentations


Presentation on theme: "Program.-(9)* Write a program Input two numbers from keyboard and multiply of given values using by variables. 1 Input value No 1 2 input value No2 3Multiply."— Presentation transcript:

1 Program.-(9)* Write a program Input two numbers from keyboard and multiply of given values using by variables. 1 Input value No 1 2 input value No2 3Multiply of No1 and No2 values 4Display answer, Multiply of two numbers. Start Display Ans End Ans =No1 x No2 Input No1 Input No2

2 .model small.stack 100h.data msg1 db 0ah,0dh,"Enter Number in No1 : $" msg2 db 0ah,0dh,"Enter Number in No2 : $" res db 0ah,0dh,"Multiply answer is : " No1 db ? symole1 db " x" No2 db ? symbole2 db "=" Ans db ?," $".code main proc mov mov ds,ax mov ah,9 lea dx,msg1 int 21h mov ah,1 int 21h sub al,30h mov No1,al mov ah,9 lea dx,msg2 int 21h mov ah,1 int 21h sub al,30h mov No2,al mov al,No1 mul No2 mov Ans,al add Ans,30h

3 add No1,30h add No2,48 mov ah,9 lea dx,res int 21h mov ah,4ch int 21h Main endp End main


Download ppt "Program.-(9)* Write a program Input two numbers from keyboard and multiply of given values using by variables. 1 Input value No 1 2 input value No2 3Multiply."

Similar presentations


Ads by Google