Skip to content

Instantly share code, notes, and snippets.

@kawakami-o3
Created September 10, 2012 17:26
Show Gist options
  • Save kawakami-o3/3692313 to your computer and use it in GitHub Desktop.
Save kawakami-o3/3692313 to your computer and use it in GitHub Desktop.
exercise
import Text.Printf
printer :: [[Int]] -> IO ()
printer = mapM_ (\x -> do
mapM (printf "%3d") x
putStrLn "")
main = printer [[x*y|x<-[1..9]]|y<-[1..9]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment