initial checkin from subversion
This commit is contained in:
12
numGuess1.hs
Normal file
12
numGuess1.hs
Normal file
@@ -0,0 +1,12 @@
|
||||
doGuessing num = do
|
||||
putStrLn "Enter your guess:"
|
||||
guess <- getLine
|
||||
if (read guess) < num
|
||||
then do putStrLn "Too low!"
|
||||
doGuessing num
|
||||
else if (read guess) > num
|
||||
then do putStrLn "Too high!"
|
||||
doGuessing num
|
||||
else do putStrLn "You Win!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user