answersLogoWhite

0

What are some palindromes?

Updated: 9/13/2023
User Avatar

Wiki User

12y ago

Best Answer

Palindromes are words that are spelled the same way backwards and forwards!

Some common palindromes in the English language include:

-pop

-deed

-kayak

-civic

-radar

-level

Some Common names:

-Hannah

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

A palindrome is a word that can be read in either ways.

For example:radar, level, madam, civic, malayalam(this word is the longest palindrome).

Some of the famous palindromic phrases are "Step on no pets"(it is the same if read in either ways), "able was i ere i saw elba".

This is a sample prog in c:

#include

main()

{

int number, temp, remainder, sum=0;

printf("Enter a number:");

scanf("%d",&number);

while(number>0)

{

remainder=number%10;

number=number/10;

sum=sum*10+remainder;

}

if(sum==temp)

{

printf("number is a palindrome");

else

printf("the number is not a palindrome");

}

getch()

}

output:

Enter a number: 12321

number is a palindrome.

ude int main() { int main() { int number,temp,remainder,sum=0; printf("\n\nEnter no: "); scanf("%d",&number); temp = number; //Value of temp stores unmodified n value while(number>0) { remainder=number%10; //Gets Last Digit number/=10; //Truncates Last Digit sum=sum*10 + remainder; //Builds value of reversed number } if (sum==temp) printf ("\nThe Number Is A Palindrome "); else printf ("\nThe Number Is Not A Palindrome "); getch (); return 0; } int number,temp,remainder,sum=0; printf("\n\nEnter no: "); scanf("%d",&number); temp = number; //Value of temp stores unmodified n value while(number>0) { remainder=number%10; //Gets Last Digit number/=10; //Truncates Last Digit sum=sum*10 + remainder; //Builds value of reversed number } if (sum==temp) printf ("\nThe Number Is A Palindrome "); else printf ("\nThe Number Is Not A Palindrome "); getch (); return 0; }

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are some palindromes?
Write your answer...
Submit
Still have questions?
magnify glass
imp