A PLATFORM TO LEARN | CODE | ACHIEVE
" Programming is the real test of your creativity,its all about how you turn ideas into codes. "
ENTER TWO NUMBERS 10 20
FIRST NUMBER = 10
SECOND NUMBER = 20
SO,AFTER SWAPPING :
FIRST NUMBER = 20
SECOND NUMBER = 10
What we did - Our Approach
In this problem,we are supposed to swap the values of two numbers without using a third variable.Swapping means interchanging of values among variables.
without using a third variable takes place in three processes :
Let us assume that num1=20 num2=10, hence , num1 is greater than num2
INTERESTING READ FOR YOU :
For any Queries,suggestions,feel free to Mail us at :
For reporting any kind of copyright voilation,mail us at : firstname.lastname@example.org
© copyright CODE OF GEEKS 2018