How to swap two numbers without using a third variable in Java?
Swapping two numbers can be also known as exchanging the numbers between two variables. The swapping of two numbers without using a third variable or a temporary variable can be done by following the below simple steps: For example, letโs take two numbers x=20 (first variable) and y=30 (second variable), Add both number (x+y) and โฆ
How to swap two numbers without using a third variable in Java? Read More ยป