Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<int> ar = new List<int>();
- ar.Clear();
- ar.Add(10);
- ar.Add(20);
- Console.WriteLine(ar.Count());
- for (int i = 0; i < ar.Count(); ++i)
- {
- Console.WriteLine(ar[i]);
- }
- long a = 10;
- SortedSet<long> mas = new SortedSet<long>();
- mas.Clear();
- mas.Add(135);
- mas.Add(136);
- mas.Add(1287129847111111);
- mas.Add(135);
- Console.WriteLine(mas.Count());
- foreach (int i in mas)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment