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