Trying to figure out how to reconstruct the number once it's pulled apart...Use the modulus operator to swap digit pairs. For instance a method call swapDigitPairs(482596) would return 845269. It needs to be done without using an array or a string. If the method got passed an integer with an odd number of digits the leftmost doesn't move.
Edit: The 9 and 6 are swapped, the 2 and 5 are swapped, and the 4 and 8. I understand how to pull the numbers apart, but I'm looking for some ideas how to put them together without a string or an array. Any ideas appreciated