Swapping of two number using 3 variable
import java.io.*; import java.util.*; class Swap { public static void main(String args[]) { System.out.println(“Enter the value of a and b”); Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c; c=a; a=b; b=c; System.out.println(“The swapping of two number is”+a+” “+b); }}