using System;
namespace P4_19
{
    class Program
    {
       
        static void Main()
        {
            string[] str = {"Hello","Wrold","Web","ASP.NET","C#"}; 
            int min; 
            for(int i=0;i<str.Length-1;i++) 
            { 
                min = i; 
                for(int j=i+1;j<str.Length;j++) 
                {    
                   if(str[min].CompareTo(str[j])>0) min = j;  
                 } 
              	if(min !=i) 
                { 
                    string temp; 
                    temp = str[i]; str[i] = str[min]; str[min] = temp;  
                } 
            } 
            for(int i=0;i<str.Length;i++) 
                   Console.WriteLine(str[i]); 
            Console.ReadLine();
        } 
    }
}
