Computer Science, asked by Lightening123, 1 month ago

Write an algorithm to swap 2 numbers without using third variable.
Pls fast...

Answers

Answered by Anonymous
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