Jump to content

PALINDROME anyone...

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
mdeenny

mdeenny

    Newbie

  • Members
  • Pip
  • 4 posts
just asking...
how can we detect (create a programe) if it is a palindrome or not...
suggestion or opinion, example maybe...

#2
Jacki

Jacki

    Learning Programmer

  • Members
  • PipPipPip
  • 80 posts
you can get (or set) the string lenght, then with a loop you can reverse the string and compare the two strings, if the strings are the same the string's palindrome...
Posted Image

Posted Image

#3
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
Edit: Couldn't get it to format properly... palindrome [TkWiki]

#4
mdeenny

mdeenny

    Newbie

  • Members
  • Pip
  • 4 posts
thanks guys...