Haskell Noob
Monday, May 30, 2011
Average of three integers
avg::Int->Int->Int->Int
avg a b c = (a+b+c) `div` 3
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment