Clicky
Showing changes from revision #0 to #1:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
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