Tuesday, March 10, 2015

C# program that adds elements to List

using System.Collections.Generic;

class Program
{
    static void Main()
    {
 List<int> list = new List<int>();
 list.Add(2);
 list.Add(3);
 list.Add(5);
 list.Add(7);
    }
}

No comments:

Post a Comment