/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Write a program to check palindrome number. */ #include int main() { int num, temp, rev; printf("Enter the number : "); scanf("%d", &num); temp = num; rev = 0; while (temp > 0) { rev = (rev * 10) + (temp % 10); temp /= 10; } if (num == rev) { printf("%d is a palindrome number.", num); } else { printf("%d is not a palindrome number.", num); } return 0; }