/*output
Eneter the String:
sahana is good
Reverse String is:
good
is
sahana
*/
using System;
public class Program
{
public static void Main()
Console.WriteLine("Eneter the String:");
string s=Console.ReadLine();
string [] a = s.Split(' ');
Array.Reverse(a);
Console.WriteLine("Reverse String is:");
for(int i=0;i<=a.Length-1;i++)
Console.WriteLine(a[i]+""+' ');
}
Console.ReadLine();