//Find a number is palindrome or not using for loop
#include<stdio.h>
int main()
{
int n,d,o,sum=0;
printf("Enter n= ");
scanf("%d",&n);
o=n;
for(;n!=0;n=n/10)
{
d=n%10;
sum=sum*10+d;
}
if(o==sum)
printf("\nIts a palindrome number");
else
printf("\nIts not a palindrome number");
return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: