title: Easy way to reverse each word in a sentence
body: <p>Example:</p>
  
  <pre><code>string str = "I am going to reverse myself.";
  string strrev = "I ma gniog ot esrever .flesym"; //An easy way to achieve this
  </code></pre>
  
  <p>As I think I have to iterate through each word and then each letter of every word.</p>
  
  <p>What I have done works fine. <strong>But I need easy/short way.</strong></p>
  
  <p><strong>C# CODE:</strong></p>
  
  <pre><code>  string str = "I am going to reverse myself.";
    string strrev = "";
  
    foreach (var word in str.Split(' '))
    {
       string temp = "";
       foreach (var ch in word.ToCharArray())
       {
           temp = ch + temp;
       }
       strrev = strrev + temp + "";
    }
    Console.WriteLine(strrev);  //I ma gniog ot esrever .flesym
  </code></pre>