Create a program plan, an algorithm, and draw a flowchart that uses sequence structure, that would accept two (2) numbers represented by X and Y. Print the two number after interchanging their values.
Program plan
1. Create a program plan
2. Create an algorithm
3. Create a flowchart
Algorithm
Start
Declare integer variable X
Declare integer variable Y
Declare integer variable temp
Read X
Read Y
temp=X
X=Y
Y=temp
Display X
Display Y
Stop
Comments
Leave a comment