Way 1:Write a program of Swapping using the third variable.

Published --