You are on page 1of 1

[M12_CSQ10] Write a PAC chart, algorithm, and Python program to swap the value of

the given two variables. [CO1][L1]

PAC
DATA PROCESSING OUTPUT
Input a • a = a+b Print a, b
Input b • b = a-b
• a = a-b

ALGORITHM

START
STEP 1: READ a
STEP 2: READ b
STEP 2: Swap the values using sum and difference as below :
a=a+b
b=a-b
a=a-b
STEP 4: DISPLAY a
STEP 5: DISPLAY b
STOP

You might also like