
21 Jul
2011
21 Jul
'11
1:27 p.m.
hello, I know try to make this work. The user enters a number and the programm calculates all the numbers which are smaller then the number and where x^2+Y^2=Z^2. So i Thought this would work. roelof :: a -> b -> c -> (a,b,c) roelof n = [(x y z) | x^2+Y^2=Z^2 <- x<-[1..n], y<- [1..n], z<-[1..n]] But I get this error : oefening.hs:2:30: parse error on input `=' Roelof