title: C# finding the shortest and longest word in a array
body: <p>I am trying to find the shortest and longest string value based on length and im getting stuck. As of now the script exits after the writeline. I think the code needs some help, I dont think a for loop can work on its own.
  Any assistance would be appreciated.         </p>
  
  <pre><code>        for (int i = 5; i &lt;0; i++)
          {
              string[] word = new string[5];
             Console.WriteLine("Type in a word");
              word[i] = Console.ReadLine();
  
               int length = word[i].Length;
               int min = word[0].Length;
               int max = word[0].Length;
               string maxx;
               string minn;
  
  
                if (length &gt; max)
                   {
                     maxx = word[i];
                     Console.Write("Shortest");
                    }
               if (length &lt; min) 
                {
                   minn = word[i];
                  Console.Write("Longest");
                }
  
  
  
           }
          Console.ReadKey(true);
      }
  </code></pre>