Palindrom

Program in C to check palindrome :

ALGORITHM:

    1. Input the no. ,say, n
    2. Reverse the no. using REVERSE() function and store it in variable, say, r.
    3. if(n==r)
      PRINT “It is a palindrome”
      else
      PRINT “It’s not a palindrome”

For reversing the number:

    1. SET rev =0
    2. REVERSE(long n)<m

C SOURCE CODE :

Leave a Reply

Your email address will not be published. Required fields are marked *