Palindrome Detection:
An integer is a palindrome when it reads the same backward as forward. For example, 121 is palindrome while 123 is not.
Let the given number be num. A simple method for this problem is to first reverse digits of num, then compare the reverse of number with num. If both are same, then return true, else false.
Input:
Enter a number: 12321
Output:
True