Write an algorithm to swap 2 numbers without using third variable.
Pls fast...
Answers
Answered by
2
Algorithm:
step1:start
step2:input a,b
step3:a=a+b
b=a-b
a=a-b
step4:output a,b
step5:stop
Similar questions