fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. List<int> list = new List<int>() { 1, 2, 3, 4, 5, 6, 7 };
  10. Console.WriteLine(list.Last());
  11. }
  12. }
Success #stdin #stdout 0.04s 33928KB
stdin
Standard input is empty
stdout
7