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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -