Split String and multiply 8
<p>I am having trouble with this. The user needs to enter a string and then I need to count the string and multiply the same string. For example, if the user entered the string The quick brown fox jumps over the lazy dog;<br>
The output should look like this, The = 22% quick = 11% brown = 11% fox = 11% jumps = 11% over = 11% lazy = 11% dog = 11%</p>

<p>Here is my code </p>

<pre><code> string phrase = "The quick brown fox jumps over the lazy dog";
        string[] arr1 = phrase.Split(' ');


        for (int a = 0; a &lt; arr1.Length; a++)
        {
            Console.WriteLine(arr1[a]);
        }



        Console.ReadKey();
</code></pre>

<p>The value is 22%, it was calculated using this formula, 2/9 * 100. 2 because "the" was used twice, divided by 9 because there are 9 words in the string. I am trying to compare each string to determine if they are the same but unable to do so.  </p>
