-
-
Save jgarte/7bd754795d453188896a1352bd82befe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double_it : IO () | |
double_it = do | |
input <- getLine | |
let n = the Int (cast input) | |
printLn (n * 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment