#include <stdio.h> int main() { int a; int b; int rev=0; int temp = a; while (a>0) { b=a%10; rev=rev*10+b; a=a/10; } // printf("%d \n",rev); //printf("%d",temp); { if (temp==rev) { printf("palindrome"); } else { printf("no"); } } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more