RosettaCodeData/Task/String-append/Fortran/string-append.f

11 lines
123 B
FortranFixed
Raw Permalink Normal View History

2015-11-18 06:14:39 +00:00
program main
character(len=:),allocatable :: str
str = 'hello'
str = str//' world'
write(*,*) str
end program main