Concatenates ncopies copies of a string.
Fortran 95 and later
Transformational function
result = repeat(string, ncopies)
string - Shall be scalar and of type character.ncopies - Shall be scalar and of type integer.A new scalar of type character built up from ncopies copies of string.
program test_repeat
write(*,*) repeat("x", 5) ! "xxxxx"
end program