Showing posts with label Swapping. Show all posts
Showing posts with label Swapping. Show all posts

Wednesday, March 4, 2009

Puzzle 4 – The Swap

Language – Java/C++ | Type – Problem (Code) | Last date 8-Mar-2009 12:00 p.m. IST | Points 5

Swapping can be easy, but this is the hardest swap ever!

Write a program that swaps two numbers.
Twist: Do not use “=” (equal sign) in entire program.

(Hard isn't it? )

Got an answer? Why don’t you leave it here.