0

How to do palindrome programme?

13th Aug 2017, 7:22 AM
molly
6 Respostas
+ 1
thank you
13th Aug 2017, 7:49 AM
molly
0
reverse that string, check whether it is equal to irreversed string.
13th Aug 2017, 7:29 AM
shobhit
shobhit - avatar
0
seriously I cannot understand!!
13th Aug 2017, 7:43 AM
molly
0
String word =" input"; String reverse; int l = word. length(); for(int i = l; i>0;i--) { reverse +=word.charAt(i); } if(word==reverse) { boolean palindrome=true; }
13th Aug 2017, 7:48 AM
shobhit
shobhit - avatar
0
check it out... input any number @ Molly or even any string.... 121 --> palindrome number abhba--> palindrome string https://code.sololearn.com/c9gRnH50FEmk/?ref=app
13th Aug 2017, 9:54 AM
sayan chandra
sayan chandra - avatar
- 1
m=input("") print("".join(list(m)[::-1])) in python
13th Aug 2017, 8:32 AM
VcC
VcC - avatar