how to write pseudocode sap the content of two variables using athird variable

1. Declare three variables A, B and C.

2. Input the values of A and B.

3. Assign the sum of A and B to variable C.

4. Output the value of variable C.

5. End.

Pseudocode:

DECLARE A, B, C AS INTEGER
INPUT A
INPUT B
SET C = A + B
OUTPUT C
END.

To write pseudocode for swapping the content of two variables using a third variable, you can follow these steps:

1. Declare and initialize three variables:
- variable 'a' with the initial value
- variable 'b' with the initial value
- variable 'temp' with an initial value of 0

2. Assign the value of 'a' to 'temp':
- temp = a

3. Assign the value of 'b' to 'a':
- a = b

4. Assign the value of 'temp' to 'b':
- b = temp

Here is an example of pseudocode for swapping two variables (a and b) using a third variable (temp):

```
// Declare and initialize variables
a = 10
b = 5
temp = 0

// Swap the values using a third variable
temp = a
a = b
b = temp

// Print the new values
print "a =", a
print "b =", b
```

Please note that pseudocode is a general-purpose language-independent description of an algorithm, so you may need to adapt the syntax and variable types according to the programming language you are using.