write a Java program to enter two numbers and start swap without using third variable?.please also explain how to write swapping program
Answers
Answered by
1
Explanation:
public static void main(string arg[]) {
System.out.println("Before swapping");
int x = 10;
int y = 20;
System.out.println("value of x:" + x);
System.out.println("value of y:" + y);
system.out.println("After swapping");
Similar questions