Computer Science, asked by rabirambolamaskarnas, 5 months ago

Write a programme to interchange the values of two variables
A. Using a third variable
B. Without using a third variable​

Answers

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

# Using a third variable

x = 69

y = 96

tmp = x

x = y

y = tmp

# Without using a third variable

a = 69

b = 96

a, b = b, a

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions