You need to pause the program before it ends so that you can see the output. You can do this by setting a breakpoint at the end of the "Main" function or, easier, insert the line:
string s = System.Console.ReadLine();
right at the end of the "Main" function. This will then wait for you to press the "Return" key before closing the command window.