fork download
  1. main = do
  2. nombre <- getLine
  3. nota1 <- readNum
  4. nota2 <- readNum
  5. promedio <- (nota1 + nota2) / 2
  6. if promedio >= 60
  7. then
  8. putStr(nombre ++ " ha pasado el curso")
  9. else
  10. putStr(nombre ++ " no ha pasado el curso")
  11. where
  12. readNum :: IO Float
  13. readNum = do
  14. line <- getLine
  15. readIO line
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Luis
80
90
compilation info
[1 of 1] Compiling Main             ( prog.hs, prog.o )

prog.hs:7:2: parse error (possibly incorrect indentation)
stdout
Standard output is empty