fork download
  1. f :: Int -> Int -> Int -> Int
  2. f i j k
  3. | i > 10 = 0
  4. | j > 10 = f (i+1) 1 1
  5. | k > 10 = f i (j+1) 1
  6. | otherwise = 1 + f i j (k+1)
  7.  
  8. main = print $ f 1 1 1
Success #stdin #stdout 0s 4396KB
stdin
Standard input is empty
stdout
1000