If Else Conditional Statement Haskell

[Solved] If Else Conditional Statement Haskell | Haskell - Code Explorer | yomemimo.com
Question : if else conditional statement haskell

Answered by : renz-carillo

main :: IO ()
main = do	let secretNumber = 5 -- conditional statement, all IFs must be accompanied by else if secretNumber == 5 then putStrLn "correct" else putStrLn "incorrect"

Source : | Last Update : Sun, 29 May 22

Answers related to if else conditional statement haskell

Code Explorer Popular Question For Haskell