title: print ASCII char on the console in C#
body: <p>I need to make the console to print ASCII char with 22 chars per "page". With an input, say "key", they will print the next 22 ASCII chars, and so on. The problem is with the "page turning" issue.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    static void Main(string[] args)
      {
  
          int i = 0;
  
          while (i &lt;= 22)
          {
              Console.Write(i + " = " + (char)i);
  
              if (i &lt; 22)
              {
                  Console.Write((char)10);
              }
  
              i++;
          }
  
          Console.Write("Please press any key to turn page");
  
          Console.ReadKey();
  
          while (i &gt; 22 &amp;&amp; i &lt;= 44)
          {
              Console.Write(i + " = " + (char)i);
  
              if (i &lt; 44)
              {
                  Console.Write((char)10);
              }
  
              i++;
          }
  
          Console.Write("Please press any key to turn page");
  
          Console.ReadKey();
      }
  </code></pre>
  
  <p>I am essentially a newbie. I learn most things by myself, so if I am academically unbearable, please bear me, and just show me how it is done. I can get by from there. Thanks in advance.</p>