Skip to content

Instantly share code, notes, and snippets.

@shamritskiy3468
Created December 16, 2018 21:22
Show Gist options
  • Save shamritskiy3468/182eb88b5c70a5c787ef64a7cd597c67 to your computer and use it in GitHub Desktop.
Save shamritskiy3468/182eb88b5c70a5c787ef64a7cd597c67 to your computer and use it in GitHub Desktop.
Task9
#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
@aya-soft
Copy link

🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment