- Get link
- X
- Other Apps
#include <stdio.h>
int main() {
int n=131, b=0, t=n; //change the value of n
while(n){
b=(b*10)+(n%10);
n=n/10;
}
if (b==t){
printf("%d is a palindrome number.", t);
} else {
printf("%d is not a palindrome number.", t);
}
return 0;
}
int main() {
int n=131, b=0, t=n; //change the value of n
while(n){
b=(b*10)+(n%10);
n=n/10;
}
if (b==t){
printf("%d is a palindrome number.", t);
} else {
printf("%d is not a palindrome number.", t);
}
return 0;
}
- Get link
- X
- Other Apps
Comments
Post a Comment