how to write a code to reverse an number without using % and /