Develop a flowchart to interchange values of two variables.
Answers
Answered by
2
Answer:
Algorithm and Flowchart to Swap Two Integer Numbers
Algorithm and Flowchart to Swap Two Integer NumbersDeclare a variable a,b and c as integer; Read two numbers a and b; c=a; a=b; b=a; Print a and b.
Algorithm and Flowchart to Swap Two Integer NumbersDeclare a variable a,b and c as integer; Read two numbers a and b; c=a; a=b; b=a; Print a and b.STEP 1: START STEP 2: ENTER A, B STEP 3: PRINT A, B STEP 4: A = A + B STEP 5: B= A - B STEP 6: A =A - B STEP 7: PRINT A, B STEP 8: END.
Similar questions