Anonymous user
Repeat a string: Difference between revisions
→{{header|D}}
(Clarify Scratch a little) |
|||
Line 213:
=={{header|D}}==
Repeating a string:
<lang d>import std.stdio, std.string;
void main() {
▲ writefln(repeat("ha", 5));
}</lang>
Repeating a character with vector operations:
Line 224 ⟶ 222:
void main() {
char[]
writefln(
}</lang>
|