using System.Collections;
using System.Collections.Generic;
public static void Main()
List<int> list = new List<int> { 6, 2, 9, 4, 5 };
Program pObj=new Program();
pObj.print(pObj.sort(list));
public void print(List<int> marray)
for(int i=0; i<marray.Count;i++) {
Console.Write("\t"+marray[i]);
public List<int> sort(List<int> marray)
for(int i=0; i<marray.Count;i++)
while(j>0 && marray[j-1]>mvalue)