using System;
using System.Linq;
namespace Qstn2 // name of project
{
class SortArrays // class name
{
static void Main(string[] args)
{
//initialize arrays as below
string[] countries = { "Denmark", "China", "Austria", "England", "Belgium" };
int[] myNumbers = { 6, 1, 8, 9, 2 };
Console.WriteLine("The sorted list of countries in anscending order as below");
//access array elements
//sort countries array
Array.Sort(countries);
foreach(String m in countries){
Console.WriteLine(m);
}
//reverse numbers array
Array.Reverse(myNumbers);
Console.WriteLine("Numbers in reverse order are given as below");
foreach(int g in myNumbers){
Console.WriteLine(g);
}
Console.ReadKey();
}
}
}