Computer Science, asked by armaangoraya30361, 11 months ago

Write an algorithm and flow chart for swapping two numbers using third variable

Answers

Answered by sudipc96
1

Answer:

x = input

y = input

temp = x

x = y

y = temp

Explanation:

here temp is a third variable which at first stores nothing and then is assigned value of x and x is assigned value of y and lastly y stores value of x. Its just same like when we interchange milk and water using a third empty vessel

Similar questions