title: How do I write an echo program in C?
body: <p>the output should be something like this:</p>
  
  <pre><code>Enter Character : a
  Echo : a
  </code></pre>
  
  <p>I wrote</p>
  
  <pre><code>int c;
    while (c != EOF)
      {
        printf("\n Enter input: ");
        c = getchar();
        putchar(c);
      }
  </code></pre>
  
  <p>But I get two Enter Input after the echos.</p>