Presentation is loading. Please wait.

Presentation is loading. Please wait.

Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input.

Similar presentations


Presentation on theme: "Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input."— Presentation transcript:

1 Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input first number 2.Input first number 3.Display message for second number 4.Input second number 5.Sum:= first number + second number 6.Display sum

2 Start Sum = first + second Display Message for first number End Display Message for first number Input first number Input Second number Display Sum

3 MOV ah,9 MOV dx,400 INT 21 MOV ah,1 INT 21 SUB al,30 MOV bl, al MOV ah,9 MOV dx,500 INT 21 MOV ah,1 INT 21 SUB al,30 MOV cl, al ADD cl,bl ADD cl,30 MOV ah,9 MOV dx,600 INT 21 MOV ah,2 MOV dl, cl INT 21 INT 20


Download ppt "Program.-(4)* Write a program for input two integer number with message and display their sum. Algorithm steps Algorithm steps 1.Display message for input."

Similar presentations


Ads by Google