Repeat a string: Difference between revisions

Content added Content deleted
(→‎{{header|C sharp|C#}}: Probably more common than the previous example.)
(added Go)
Line 263: Line 263:
Output:
Output:
hahahahaha
hahahahaha

=={{header|Go}}==
<lang go>fmt.Println(strings.Repeat("ha", 5)) # ==> "hahahahaha"</lang>
"Characters" are just strings of length one.


=={{header|Haskell}}==
=={{header|Haskell}}==