Sha256: 3c62ef31a9cf4f0b6cc1934b05c71a9611d59f4f3480a69a9ad2afa53c37bbad
Contents?: true
Size: 786 Bytes
Versions: 10
Compression:
Stored size: 786 Bytes
Contents
main = do a <- readLn :: IO Integer b <- readLn :: IO Integer putStrLn $ "a + b = " ++ show (a + b) putStrLn $ "a - b = " ++ show (a - b) putStrLn $ "a * b = " ++ show (a * b) putStrLn $ "a to the power of b = " ++ show (a ** b) putStrLn $ "a to the power of b = " ++ show (a ^ b) putStrLn $ "a to the power of b = " ++ show (a ^^ b) putStrLn $ "a `div` b = " ++ show (a `div` b) -- truncates towards negative infinity putStrLn $ "a `mod` b = " ++ show (a `mod` b) -- same sign as second operand putStrLn $ "a `divMod` b = " ++ show (a `divMod` b) putStrLn $ "a `quot` b = " ++ show (a `quot` b) -- truncates towards 0 putStrLn $ "a `rem` b = " ++ show (a `rem` b) -- same sign as first operand putStrLn $ "a `quotRem` b = " ++ show (a `quotRem` b)
Version data entries
10 entries across 7 versions & 1 rubygems