int digit;
cout << "Enter digit:";
cin >> digit;
int old_digit = digit;
int new_digit = 0;
while (digit > 0)
{
if (new_digit == old_digit)
cout << "Enter digit:";
cin >> digit;
int old_digit = digit;
int new_digit = 0;
while (digit > 0)
{
int tmp = digit % 10;}
new_digit = new_digit * 10 + tmp;
digit = digit / 10;
if (new_digit == old_digit)
cout << "palindrom" << endl;else
cout << "No palindrom" << endl;system("pause");