Consider the following Python snippet. Assume that is passed as input to the code. Which of the following option is the correct output for the given input?
```
num = int(input("Enter a number"))
r_num = 1
while num != 0:
digit = num % 10
r_num = r_num * 10 + digit
num //= 10
print(r_num)
```