Anonymous user
Repeat a string: Difference between revisions
Added Fortran
(Ada solution added) |
(Added Fortran) |
||
Line 44:
=={{header|E}}==
<lang e>"ha" * 5</lang>
=={{header|Fortran}}==
{{works with |Fortran|90 and later}}
<lang fortran>program test_repeat
write (*, '(a)') repeat ('ha', 5)
end program test_repeat</lang>
Output:
hahahahaha
=={{header|Haskell}}==
|