t1.hs 80 B

123456
  1. f n = case n of
  2. 0 -> 1
  3. _ -> n * f (n - 1)
  4. main :: IO ()
  5. main = print ( f 5 )