title: How to create a phonebook in c# through dictionary via inputstream?
body: <p>I am new to programming...please someone help writing this program.</p>
  <p>this is the code i have written so far....i know there are so many mistakes please help.</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.IO;
  class Solution
  { 
  static void Main(String[] args)
  {
      int n = Convert.ToInt32(Console.ReadLine());
      for (int i = 0; i &lt; n; i++)
      {
          Dictionary&lt;string, int&gt; phonebook = new Dictionary&lt;string, int&gt;();
          foreach (string name in phonenumber)
          {
              phonebook.Add(&quot;name&quot;, num);
          }
      }
  
  }
  </code></pre>
  <p>}</p>