Steps in algorithm for assignment statement

  1. Describe an algorithm that interchanges the values of the variables x and y, using ​only assignments. What is the minimum number of assignment statements needed ​to do this?
  2. Describe an algorithm that puts the first three terms of a sequence of integers of ​arbitrary length in increasing order.enter image description here