Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

6 lines (3 sloc) 0.095 kb
square_diff n = (sum [1..n]) ^2 - (sum (map (^2) [1..n]))
main = do
print $ square_diff 100
Jump to Line
Something went wrong with that request. Please try again.