Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int x = 42;
- int y = 24;
- System.out.println("x: " + x + "\ny: " + y);
- x = x ^ y;
- y = x ^ y;
- x = x ^ y;
- System.out.println("x: " + x + "\ny: " + y);
- //
- int x = 42;
- int y = 24;
- System.out.println("x: " + x + "\ny: " + y);
- x = x + y;
- y = x - y;
- x = x - y;
- System.out.println("x: " + x + "\ny: " + y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement