asking about execute of a line
<p>I wish to write a program in C# that executes line to line.</p>

<p>By which I mean the equivalent of C++</p>

<pre><code>#include &lt;stdio.h&gt;

int main ()
{
  char c;
  puts ("Enter q to exit:");
  do {
    c = getchar();
    putchar(c);
  } while (c != 'q');
  return 0;
}
</code></pre>

<p>What would the equivalent in c# be?</p>
