Please, can someone help me in this exercise, because I really don't know too much about swaping!...I dont need to write the whole code, only a part of it when it's shown how I swap and round them...
_____
Write the code that swaps the value of two int variables. Then round both variables to the nearest tenth. example: (If x contains the value of 43 and y the value of 87, then after the swap, the x should contain the value 87, and y the value 43. After rounding, x should contain a value of 90, and y the value of 40. )
i got this, im not sure at all!...
firstValue As Integer
secondValue As Integer
firstValue = 43
secondValue = 87
firstValue = firstValue ^ secondValue
secondValue = firstValue ^ secondValue
firstValue = firstValue ^ secondValue