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
Hindi,
19 days ago
Social Sciences,
19 days ago
Math,
1 month ago
Hindi,
1 month ago
Physics,
8 months ago