Skip to content

Given An Integer, Write A Function That Returns True If The Given Number Is A Palindrome, Else False.

Notifications You must be signed in to change notification settings

TheQueryCrew/P4-PalindromeDetection

Repository files navigation

Palindrome Detection

Write a Program to check if a given number is a Palindrome or not.

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

About

Given An Integer, Write A Function That Returns True If The Given Number Is A Palindrome, Else False.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published