Skip to content

Instantly share code, notes, and snippets.

@rayyildiz
Last active August 6, 2016 16:55
Show Gist options
  • Save rayyildiz/b96fecf18015679a3d5e040083f3b9b1 to your computer and use it in GitHub Desktop.
Save rayyildiz/b96fecf18015679a3d5e040083f3b9b1 to your computer and use it in GitHub Desktop.
Palindromic Numbers in Haskell
[x*y | x<-[10..99], y<- [10..99], reverse(show(x*y))==show(x*y)]
@rayyildiz
Copy link
Author

rayyildiz commented Aug 6, 2016

The palindromic numbers, made from the product of two 2-digit numbers, reads the same both ways.

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