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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -