package com.crack;
public class Swap {
//a=9 b=4
public static void swap(int a,int b)
{
a=a-b;//diff
b=a+b;
a=b-a;
System.out.println("a:"+a);
System.out.println("b:"+b);
}
}
public class Swap {
//a=9 b=4
public static void swap(int a,int b)
{
a=a-b;//diff
b=a+b;
a=b-a;
System.out.println("a:"+a);
System.out.println("b:"+b);
}
}