Click here to see code
This program seen here uses fuctions in a fun way to determine weather a number is a palindrome or not.
in this program the number will count as a palindrome if it can become a palindrome, example:
11 = palindrome
31= (31+13=44) =palindrome
28=(28+82=110)=(110+011=121)=palindrome
The only way that a number will be considered a non palindrome by this program is if it takes +30 steps to turn into a palindrome.
No hay comentarios:
Publicar un comentario