Respuesta :
There are different type of variable in computer, In a swap you need a temporary variable so that one of the values is not lost.
What is a temporary variable?
A temporary variable is a variable that has a short lifetime,it is use to hold a data that will soon be discarded, or data that will soon be moved to a more permanent memory location.
Therefore, In a swap you need a temporary variable so that one of the values is not lost.
Learn more on temporary variable here,
https://brainly.com/question/13420617