+ 1
Palindrome
who is can to give me program that check if world palindrome or not palindrome
4 Réponses
+ 3
You didn't specify a language. Here is a simple code to check palindrome in Python:
word=input("Enter Word: ").lower()
if word == word[::-1]:
print(word + " is a palindrome")
else:
print(word + " is not a palindrome")
Here are 2 more codes:
This one tells you all palindromes in a sentence you enter:
https://code.sololearn.com/c01zKIME5Jf6/?ref=app
This one tells you if a word is a palindrome
https://code.sololearn.com/c05fv2KJygw8/?ref=app
0
My own in JAVA:
https://code.sololearn.com/cTfSSCHPWCeC/?ref=app
0
https://code.sololearn.com/cywHYr3xL8jg/#java
0
Can you give me in C# ?