Browse Source

Added a comment for prompt.

master
Craige McWhirter 5 years ago
parent
commit
7fe6e8ccc2
  1. 1
      parabola.hs

1
parabola.hs

@ -20,6 +20,7 @@ calculateArcLength height width = do
/(8*height)
putStrLn $ "Parabola length is: " ++ show arcLength
-- Take a string from the user and convert into a Float.
prompt :: String -> IO Float
prompt x = do
putStr x

Loading…
Cancel
Save