Un numar inversabil se numeste "palindrom", nu "poligon".
#include <iostream>
using namespace std;
bool isPalindrome (int number)
{
int copy = number, reverse = 0;
while (copy)
{
reverse = reverse * 10 + copy % 10;
copy /= 10;
}
return number == reverse;
}
int main()
{
int n;
cin >> n;
cout << isPalindrome(n);
}