Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

swap of two numbers without using third variable

a=20;
b=40;
a=a+b;  
b=a-b;
a=a-b;  
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #swap #numbers #variable
ADD COMMENT
Topic
Name
6+3 =