Write an algorithm to swap the value of variable A and B
Answers
Answered by
0
Answer:
- Declare 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.
Explanation:
Please mark me as brainliest
Similar questions