Computer Science, asked by shibakhatoon, 8 months ago


29. Write a program to take a two digit number and check it is palindrome or not.(A palindrome number is equal to
its reverse number.)
Example:
Input : 23
Output: Not Palidrome
Input
Output: Palidrome​

Answers

Answered by kurmasrinish2cherry
1

Answer:I will give an algorithm that assumes the number is an even number of digits long ... Find the decimal representation of the input number ("2133"). ... n it is your palindrome, if not just increase the center number(pivot) ie, you get ... other examples. n=17286 palidrome-attempt=17271(since it is less than n increment the pivot, ...

Explanation:

PLZ  MARK AS A BRAINLIEST ANSWER

Answered by satyam21461
0

How do you check if a word is a palindrome in Java?

Create a StringBuffer object by passing the required string as a parameter to the constructor. Reverse the contents of the object using the reverse() method. Convert the StringBuffer object to Sting using the toString() method. Now, compare the String and the reversed one, if true, the given string is a palindrome.

Similar questions