Swap of two numbers
Problem to swap the given numbers.
Example-1:
Input : a = 3 , b = 5 Output : 5 3 Explain : After swap of the number a=5 and b=3.
Example-2:
Input : a = 4 , b = 6 Output : 6 4 Explain : After swap of the number a=4 and b=6.
Solution
n = 3 m = 5 n,m = m,n print(n,m)
Output
5 3