 numbers = &quot;&quot;
for n in 1...5 {
    print(n, terminator: &quot;&quot;, to: &amp;numbers)
}
// numbers == &quot;12345&quot;</code></pre>

<p><strong>Parameters:</strong>
  <strong>items:</strong> Zero or more items to print.
  <strong>separator:</strong> A string to print between each item. The default is a single
    space (<code>&quot; &quot;</code>).
  <strong>terminator:</strong> The string to print after all items have been printed. The
    default is a newline (<code>&quot;\n&quot;</code>).
  