Reversing Words in a Sentence using c#

  1. protected void Page_Load(object sender, EventArgs e)  
  2. {          
  3.       string inputsent = "This is an simple example of sentence reversing";  
  4.       string[] words = inputsent.Split(' ');  
  5.       Array.Reverse(words);  
  6.       Response.Write(string.Join(" ", words));  
  7. }