#include #include int main() { int a; // ur number std::cout << "Enter number for check: "; std::cin >> a; std::string s = std::to_string(a); // rewrite number as a string std::reverse(s.begin(), s.end()); // reverse str number if (s == std::to_string(a)) { std::cout << a << " - palindrom" << std::endl; } else { std::cout << a << " - isn`t a palindrom" << std::endl; } system("pause"); return 0; }