WAP that swap values of two (10,20)variables using a third variable content Acclaimed
Swap function A swap function is a function that allows you to exchange the values of two variables. It takes two variables as input and swaps their values. The purpose of a swap function is to provide a convenient and…