/* * 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. */ // File Name - amit0611202502.c (LAB), APC-PRAC-016.c (Local) // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. // Go to this link to create a new issue: https://github.com/notamitgamer/bsc/issues #include int main() { int num, temp, rev = 0; printf("Enter the number : "); scanf("%d", &num); temp = num; while (temp > 0) { rev = (rev * 10) + (temp % 10); temp /= 10; } if (rev == num) printf("\nInput %d is a palindrome number.", num); else printf("\nInput %d is not a palindrome number.", num); return 0; }