Answers for "swap value by using third variable"

C
0

swap two numbers without using third variable

var a=window.prompt('enter a number')var b=window.prompt('enter a number')var a=a+b;var b=a-b;var a=a-b;console.log ("value of a is",a);console.log('value of b is',b);
Posted by: Guest on June-28-2021

Code answers related to "swap value by using third variable"

Code answers related to "C"

Browse Popular Code Answers by Language