(Split digits) Write a program that prompts the user to enter a four-digit integer and displays the number in reverse order. Here is a sample run:
Enter an integer: 3125
3
1
2
5
#Prompt the user to give input
num=int(input("Enter an integer:"))
for a in str(num):
#Display Results
print(a)
Output:
Enter an integer:3125
3
1
2
5