Java

Swap two numbers without using temporary variable in Java1 min read

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