Lets get on the something a bit more complicated...
How about Palindrome detector?
How does it work?
It uses a loop, which loops half the amount of letters in the answer.
It will check from each side, and if both sides found the same letters/numbers as the other side, it is a palindrome.
And if it finds one letter not in common, it skips to saying that this string is not a palindrome, if through all the loops it works, it is a palindrome!
Post a Comment