Yes i think 0 is a palindrome because read fowards it says 0 and read backwards it says 0.
Chat with our AI personalities
#includeint main(){int num, r, sum=0, temp;print f("enter a number:");scan f("%d",&num);temp=num;while(n!=0){r=num%10;num=num/10;sum=sum*10+r;}if(temp==sum)print f("%d is a palindrome",temp);elseprint f("%d is not a palindrome",temp);return 0;}
There is no palindrome for 14.
because no number starts with 0. A palindrome has to start and end with the same number. For example you would have to write 020 (twenty) for it to be considered a palindrome, and that would not be the correct way to write numbers.
Yes, 1331 is a palindrome
"Was it a rat I saw? is a palindrome.