WAP to swap 2 numbers using third Variable.
Usually we write something like this.
int num1=5;
int num2=10;
int temp=num1;
num1=num2;
num2=temp;
But we used third variable here. So you should not use third variable.
Published By : Suraj Ghimire