Math, asked by sabina9378, 1 year ago

Write an algorithm to swap three numbers

Answers

Answered by spidy298
1
So as you haven't mentioned the programming language in which you want the algorithm so i giving you a logical representation which you can implement in any language .
Consider a temporary variable temp
consider 3 variables a,b,c
copy the content of a in temp
copy the content of b in a
copy the content of c in b
copy the content of temp in c
That's it
Similar questions