Given an integer, write a function that returns true if the given number is palindrome, else false. For example, 12321 is palindrome, but 1451 is not palindrome.
Let the given number be num. A simple method for this problem is to first reverse digits of num, then compare the reverse of num with num. If both are same, then return true, else false.
Input : 12221 Output : true Input : 12345 Output : false
Below is the required implementation:
- How to make Storage Partition on Cloud
- Expected Properties of a Big Data System
- log() function for complex number in C++
- High Definition Multimedia Interface (HDMI)
- Could Computing | Service classes and system codes of conduct in IDaaS
- Mathematics | Renewal processes in probability
- Introduction to Parallel Computing
- Scala | Pattern Matching
- Java Program for Phone Mnemonics
- Computer Ports
- Microservices Introduction
- Audio Format
- Common Video Format
- Characteristics of data in geographical information system (GIS)
- Geographical information system (GIS) and its Components
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.