Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a process to determine if a integer number is a numeric palindrome. A nu

ID: 3680750 • Letter: D

Question

Develop a process to determine if a integer number is a numeric palindrome. A numeric palindrome is a number that is the same if the digits are given in reverse order. For example, the numbers 257752 and 96369 are numeric palindromes whereas the numbers 2371 and 28746 are not numeric palindromes

NOTE: *NO* code needs to be written for this. You just need to explain how this would be done in C++. The problem should be restated, specify what input is needed, what output is expected, and the step-by-step process to get the output from the input.

Explanation / Answer

To check whther a number is palindrome or not first we have to reverse the number then we have to check the reverse number and the input are same or not.if both are same then it is a palindrome otherwise it is not a palindrome.

steps:

1.get the input from the user

2.and do the following steps

do
     {
      digit = n%10;
       rev = (rev*10) + digit;
        n = n/10;
     }while (n!=0);

n is the input number by moduling n with 10 we will get individual digits of the numbers and rev is that we are framing or doing reverse of given number.after that we will compare rev with the input if both are same then it is palindrome otherwise it is not a palindrome.