exercise 4.19

riz er rizer_@hotmail.com
Tue, 09 Oct 2001 11:02:43 +0000


howMany :: Int -> Int -> Int -> Int

howMany n1 n2 n3
	| (n1 > a) && (n2 > a) && (n3 > a) = 3
	| (n1 > a) && (n2 > a) = 2
	| (n1 > a) && (n3 > a) = 2
	| otherwise = 1
	  where a = (n1 + n2 + n3)/3


i get an error message  "ERROR C:\My Documents\Haskell 
programming\question4.19.txt:4 - Instance of Fract
ional Int required for definition of howMany"

how could i resolved this ?


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp