1.You will be given two numbers n1 and n2. 2.You have to swap these numbers n1 and n2 in two ways:- 2.1 Using third variable 2.2 Without using third variable
Input Format
A number n1 A number n2
Output Format
A swapped number d1 A swapped number d2
Constraints
1<=n1,n2<=10^4
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
10 20
Output
20 10