Write a program to check a number is palindrome or not
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char str[100];
int i,l;
cout<<"enter the number: ";
cin>>str;
l=strlen(str);
for(i=0; i<l/2; i++)
{
if(str[i]!=str[i-1-i])
{
cout<<" not palidrome number";
break;
}
else
{
cout<<" pelidrome number";
break;
}
}
return 0;
}