fork download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. char[] a = new char[] { 'a', 'b', 'c', 'd' };
  9. Console.WriteLine(string.Join("", a));
  10. Console.WriteLine(string.Join("", a.Select(v => "-")));
  11. }
  12. }
Success #stdin #stdout 0.02s 131648KB
stdin
Standard input is empty
stdout
abcd
----