Quick actions

cmd+k|ctrl+k

Navigation

Languages

Haskell Input

Snippet info

Language

Haskell

Visibility

public

Author

steinwaywhw

Created

2016-09-15T16:05:53Z

Updated

2016-09-15T16:05:53Z

main = do
    line <- getLine
    let n = read line :: Int 
    putStrLn "You input is: " 
    print n
    if n > 0
    then putStrLn "and it is greater than 0"
    else putStrLn "and it is less than or equal to 0"
INFO