Write your question here.
using namespace std;
#include<iostream>
#include<math.h>
int main()
{
int p,r[100],n,t,sum=0;
cout<<"give any no. ,p=";
cin>>p;
while(p!=0)
{
for(n=0;n<100 ;n++)
{
r[n]=p%10;
p=p/10;
}
t=n;
}
for(t,n=0;t>0;n++,t--)
{
sum=sum+pow(10,t)*r[n];
}
if(sum==p)
cout<<"palindrom";
else
cout<<"no";
//getch();
}
Do you know what the code is doing? Where is it calculating something you don't understand?