C# program that adds elements to List


SUBMITTED BY: inzi

DATE: March 29, 2017, 7:16 p.m.

FORMAT: C#

SIZE: 264 Bytes

HITS: 522

  1. C# program that adds elements to List
  2. using System.Collections.Generic;
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. List<int> list = new List<int>();
  8. list.Add(2);
  9. list.Add(3);
  10. list.Add(5);
  11. list.Add(7);
  12. }
  13. }

comments powered by Disqus