Programming Practice

Suppose variable x is a 32-bit unsigned integer x31x30¼x1x0. The bit reversal of x is a 32-bit unsigned integer x0x1¼x30x31. Write a program to input the value of x in the hexadecimal format and then perform bit reversal of x and output the result.

Input an eight-digit hexadecimal number: 0X3B6D459B

The value of x: 0X3B6D459B
The bit reversal value of x: 0XD9A2B6DC

@