3 Comments

  1. ronak

    The addition/subtraction method works when addition of both the numbers do not go out of the int range

    Reply
  2. Rishabh

    Int first =5;
    Int second =3;
    first=first+second -first;
    second=first+second -second;

    This can also be done swap value without using another variable .

    Reply

Leave a Reply