Computer Science, asked by Manan590, 2 months ago

Algorithm and flow chart to swap two numbers using temporary variables

Answers

Answered by a85827332
1

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.

More items...•08-Mar-2021

Similar questions