Create a python program to reverse an integer.
x = 123
def reverse_int(x):
    """Reverse an integer."""
    reversed_int = int(str(x)[::-1])
    return reversed_int

# Usage Example
x = 123
reversed_int = reverse_int(x)
print(reversed_int)  # 321