Medium
Swap With Arithmetic
Read two integers a and b. Swap them using only
a = a + b, b = a - b, a = a - b (no third variable, no tuple swap) and print a and b.Input
Two integers.
Output
One line.
Sample 1
Input
3 7
Output
7 3
Sample 2
Input
0 5
Output
5 0
Output appears here