Answer Posted / srinathsv
Suppose the 2 variables be 'a' & 'b'
Then,do the following steps
a=a-b
b=a+b
a=b-a
eg:Say a=10;b=6.The output should be a=6;b=10
a=a-b=10-6=4
b=a+b=4+6=10
a=b-a=10-4=6
Is This Answer Correct ? | 35 Yes | 5 No |
Post New Answer View All Answers