Advertisement
alestane

Untitled

Dec 13th, 2020
1,481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Data.Char
  2.  
  3. choices = let
  4.               capital = toUpper . head
  5.           in do
  6.                 l <- getLine
  7.                 let initial = capital l
  8.                 remaining <- choices
  9.                 return (initial : remaining)
  10.  
  11. main = do
  12.           inputs <- choices
  13.           mapM (putStrLn . (:"Q")) inputs
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement