Home / Tag Archives: swap two numbers

Tag Archives: swap two numbers

c program to swap two numbers without using a third variable

swap two number

Swap two numbers without using a third variable | Swap Two numbers without using a temporary variable: There are 4 tricks to swap two numbers without using a third variable. You can use of them for your program. However the trick #4 is the smartest, fastest & easiest of all. The trick used is nothing but basic mathematics fundamentals like: multiplication, ...

Read More »

Java program to swap two numbers without using a third variable

Here are 4 Tricks to swap two numbers without using a third variable. Here is a java program to swap two numbers without using a third variable. To do so you can use basic mathematical operations like multiplication, division and addition, subtraction. See the Further Explanation:  Incoming terms: tricks to swap two numbers, swap two numbers various tricks.

Read More »