answersLogoWhite

0

How do you reverse a hex no?

Updated: 9/17/2023
User Avatar

Wiki User

14y ago

Best Answer

To reverse a hex no, follow the steps:-

1. Get the number.

2. Divide the no. by 16 and store the remainder in stack.

3. Change the number to quotient. i.e now the number is quotient.

4. Repeat step 1-3 till the quotient becomes zero.

5. Pop the element from stack and push it in another stack.

6. Repeat step 5 till the first stack becomes empty.

7.Now pop out the second stack complete and display. It is the hex no. in reversed format.

Eg:-

12EA5B ------> 1 2 E A 5 B (stack one)

B 5 A E 2 1 (Stack two)

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you reverse a hex no?
Write your answer...
Submit
Still have questions?
magnify glass
imp