fork download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9.  
  10. public static void Main()
  11. {
  12. int n = 10;
  13. IEnumerable<String> strings = Enumerable.Range(1, n).Select(i => "ip" + i);
  14. String repeated = String.Join(",", strings.ToArray());
  15. Console.Write(repeated);
  16. }
  17. }
Success #stdin #stdout 0.03s 33936KB
stdin
Standard input is empty
stdout
ip1,ip2,ip3,ip4,ip5,ip6,ip7,ip8,ip9,ip10