fork(11) download
  1. using System;
  2. using System.Linq;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var array = new short[] {4, 4, 5, 6};
  9. var sum = array.Select(x=> (int)x).Sum();
  10. System.Console.WriteLine(sum);
  11. }
  12. }
Success #stdin #stdout 0.03s 33896KB
stdin
Standard input is empty
stdout
19