C Program to Check a Number is Palindrome or Not

Get Certified in C Programming and Take Your Skills to the Next Level

Program 1

// Program for  palindrom of number
#include<stdio.h>
#include<conio.h>
int main()
{
     int n,r,s=0,m;
     printf("\nEnter a number");
     scanf("%d",&n);
     m=n;
     while(n!=0)
     {
        r=n%10;
        s=s*10+r;
        n=n/10;
     }
      if(m==s)
      printf("No is palindrom");
      else
      printf("No is not palindrom");
}

 

You give me 15 seconds I promise you best tutorials
Please share your happy experience on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

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