Swap two numbers
Submissions: 4982   Accuracy:

49.79%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Swap given two numbers and print them. (Try to do it without a temporary variable.)

Input:
First line contains an integer, the number of test cases 'T'. Each test case should contain two positive numbers a and b.


Output:
Print the 2 numbers after swapping.


Constraints: 
1 <= T <= 100
1 <= a <= 106
1 <= b <= 106


Example:
Input:
2
20 30
12 32

Output:
30 20
32 12

** For More Input/Output Examples Use 'Expected Output' option **

Author: abhiraj26


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.