title: How to print out newline ASCII?
body: <p>Trying to print out the decimal equivalent <code>\n</code> (newline) with below code. When it is executed I press enter and <kbd>Ctrl</kbd> + <kbd>Z</kbd> but nothing is printed on screen. I expect 10 to be printed. What am I missing? </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      char ch;
  
      while ((ch = getchar() != EOF))
      {
          if (ch == '\n')
          {
              printf("\\n=%d\n", ch);
          }
      }
  }
  </code></pre>