using System.Collections.Generic;
public class ListExcercises{
static void Main(string[] args){
var List1 = new List<int>(){1,2,3,-1,10,-100};
Console.WriteLine("After adding new element:");
foreach(var num in List1){
Console.WriteLine("Count of the list is :"+List1.Count);
Console.WriteLine("Index of 1:"+List1.IndexOf(1));
Console.WriteLine("Clearing 1:"+List1.Remove(1));
foreach(var num in List1){
Console.WriteLine("After removing all the 3");
for(int i=0;i<List1.Count;i++){
foreach(var num in List1){
Console.WriteLine("After sorting");
foreach(var num in List1){