8. Multiple assignmentΒΆ
To swap variables, the following sequence does not work!
One solution would be to use a
temp
variable.
Multiple assignment can also be used, which is more elegant.
You have attempted of activities on this page
To swap variables, the following sequence does not work!
One solution would be to use a temp
variable.
Multiple assignment can also be used, which is more elegant.