c# how to write one letter multiple times code example
Example 1: write string multiple times c#
String.Concat(Enumerable.Repeat("Hello", 4))
Example 2: c# repeat string x times
string result = new String('-', 5);
Output: -----
String.Concat(Enumerable.Repeat("Hello", 4))
string result = new String('-', 5);
Output: -----