Given two int variables, i and j, which have been declared and initialized, and two other int variables

Given two int variables, i and j, which have been declared and initialized, and two other int variables

LANGUAGE: Visual Basic

CHALLENGE:

Given two int variables, i and j, which have been declared and initialized, and two other int variables, itemp and jtemp, which have been declared, write some code that swaps the values i and j by copying their values to itemp and jtemp, respectively, and then copying itemp and jtemp to j and i respsectively.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level