Skip to content
Snippets Groups Projects
Select Git revision
  • 94a623c9cec423be1065d9a2d064f3837ba5c45c
  • master default protected
2 results

ex4.hs

Blame
  • ex4.hs 109 B
    pyths :: Int -> [(Int,Int,Int)]
    pyths n = [(x,y,z) | x <- [1..n], y <- [1..n], z <- [1..n], x^2 + y^2 == z^2]