SAP interview question

How can you swap two variables without using a third temporal variable?

Interview Answers

Anonymous

9 Aug 2016

By adding and subtracting. (You have to figure out the math)

1

Anonymous

15 Feb 2019

Suppose: a=5 b=4 a=a+b % 9 b=a-b % 5 a= a-b % 4