public static void Main()
Console.WriteLine("Hello World");
int [] arr = new int [] {5, 2, 8, 7, 1};
Console.WriteLine("Elements of original array: ");
for (int i = 0; i < arr.Length; i++) {
Console.Write(arr[i] + " ");
for (int i = 0; i < arr.Length; i++) {
for (int j = i+1; j < arr.Length; j++) {
Console.WriteLine("Elements of array sorted in descending order: ");
for (int i = 0; i < arr.Length; i++) {
Console.Write(arr[i] + " ");