I wish to write a program in C# that executes line to line.
By which I mean the equivalent of C++
#include <stdio.h>
int main ()
{
char c;
puts ("Enter q to exit:");
do {
c = getchar();
putchar(c);
} while (c != 'q');
return 0;
}
What would the equivalent in c# be?