title: How do I arrange a list to a pre-built templates? (Console)
body: <p>I have a generic list of names whose number depends on what the user selects. I want to arrange those names in a range of times of the day that the user input before.
  For example: we have 3 names, the user input 08:00-17:00. From 08:00-17:00 we have 9 hours -> 9/3=3, so arrange the names in a 3 hours templates.</p>
  
  <p>This is how it looks in code:</p>
  
  <pre><code>List&lt;string&gt; myList = new List&lt;string&gt;();
  myList.Add(Name1);
  myList.Add(Name2);
  myList.Add(Name3);
  
  Console.WriteLine("Enter hours range: ");
  Console.ReadLine(); //in this case the user input is 08:00-17:00
  
  if (myList.Count == 3)
  {
      Console.WriteLine("8-11 " + myList.ElementAt(0)); //Name1
      Console.WriteLine("11-14 " + myList.ElementAt(1)); //Name2
      Console.WriteLine("14-17 " + myList.ElementAt(2)); //Name3
  }
  </code></pre>
  
  <p>The problem comes, when there are more than 3 names and the hours are halved (lets say 17:30).</p>
  
  <p>Any ideas on how to do this kind of thing?</p>