Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6149e8ff55
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (7 sloc) 0.195 kb
import System.Environment
import Text.Printf
main = do
[d] <- map read `fmap` getArgs
printf "%f\n" (mean [1..d])
mean :: [Double] -> Double
mean xs = sum xs / fromIntegral (length xs)
Jump to Line
Something went wrong with that request. Please try again.