//
// Reverse the ordering of words in a String
// I have this string: "My name is X Y Z";
// and I want to reverse the order of the words so that: "Z Y X is name My"
using System;
public class Program
{
public static void Main()
string word ="My name is X Y Z";
string [] a = word.Split(' ');
Array.Reverse(a);
for(int i=0;i<=a.Length-1;i++)
Console.Write(a[i]+""+' ');
}
Console.ReadLine();