int main() {
int num, reverse = 0, remainder, original;
// Input a number
printf("Enter a number: ");
scanf("%d", &num);
original = num;
// Reverse the number
while (num != 0) {
remainder = num % 10;
reverse = reverse * 10 + remainder;
num /= 10;
}
// Check if palindrome
if (original == reverse)
printf("%d is a palindrome number.\n", original);
else
printf("%d is not a palindrome number.\n", original);
return 0;
}
`
Create Palindrome String Program and upgrade the Palindrome Number Program
Palindrome Number Program
`
include
int main() { int num, reverse = 0, remainder, original;
} `
Create Palindrome String Program and upgrade the Palindrome Number Program