Printing the reverse of an Integer

Write a function that gets an integer and prints its reverse.

For Example: 
If an entered integer is "123456", the function should print "654321"

Implementation: