Created
December 16, 2018 21:22
-
-
Save shamritskiy3468/182eb88b5c70a5c787ef64a7cd597c67 to your computer and use it in GitHub Desktop.
Task9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#it's not very good to do that... | |
class String | |
def palindrome? | |
self == self.reverse | |
end | |
end | |
input = gets.chomp | |
puts input.palindrome? ? true : false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🥇