Friday, May 30, 2014

Featured project #2

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.
Why half?
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!
Cheers, Codegirl101

No comments:

Post a Comment