answersLogoWhite

0

step 1 : input n

step 2 : s = 0, a=n

step 3 : while(n>0)

begin

rem=n%10

s=s*10+rem

n=n/10

end

step 4 : if(s==a)

print 'it is a palindrome'

else

print 'it is not a palindrome'

step 5 : stop

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write an algorithm to check whether a number is a prime number or not?

You can write out this algorithm. This will then be programmed into the device to make determining prime numbers easier.


Which 4 digit number is always a palindrome?

Any number that is is a palindrome will always be a palindrome.


What is palindrome no?

A palindrome number: If the reverse of the number is equal to the number itself, then it is said to be a palindrome number. For example: 11, 22 ,55, etc...


How a check digit is calculated?

Check digits are determined (or derived) by a set algorithm using the digits of the account number.


What is the number palindrome of 563?

There is no number palindrome for 563. A number palindrome is a number which is the same number when the digits are taken in the reverse order. For example, 2002 is the number palindrome of 2002 as it reads the same no matter which way it is read. Whereas 563 when read in reverse is "365" which is not the same as "563". Therefore ,there is no number palindrome for 563.


Is 606 a palindrome number?

Yes, 606 is a palindrome.


What is the word for a number palindrome such as 1001?

Numeric palindrome


Is the number palindrome 654 or 606?

606 is a palindrome.


When Which number is a palindrome 654 or 606?

606 is a palindrome.


Write an algorithm to check whether the given number is odd or even?

Type your answer here... i think we should first enter 1 number then check it


How do you know that a numeric is palindrome or not using c or pascal language?

Reverse the digits then check of the new number is the same as the original number.


Can 1111 be a palindrome?

If you mean the number 1,111 or simply 1111, this is a palindrome. A palindrome is a string or number that is spelled or written the same way forward and backward.