Java

Swap two numbers without using temporary variable in Java

Write a java program to swap two numbers without using third variable.

Java Code:

 




Output:

Swap two numbers without using temporary variable in Java

Swap two numbers without using temporary variable in Java

Leave a Comment