Java program to swap two numbers using third variable

Output:


java program to swap numbers without using third the variable