printing - Haskell print string without newline -
when use code it's print newline after result. how can don't write newline?
import system.io main :: io () main = <- getline b <- getline let aa = read :: int let bb = read b :: int let cc = aa + bb print cc
print defined putstrln . show, fix use putstr . show $ cc.
Comments
Post a Comment