class Demo1
{
public static void main(String[] args)
{
int a=2;
int b=3;
System.out.println("a="+a+";b="+b);
a=a+b;
b=a-b;
a=a-b;
System.out.println("a="+a+";b="+b);
}
}
class Demo1
{
public static void main(String[] args)
{
int a=2;
int b=3;
System.out.println("a="+a+";b="+b);
int x ;
x = a;
a = b;
b = a;
System.out.println("a="+a+";b="+b);
}
}