Console Application (Newb)
Ive been coding in VB.net 2003 for awhile and today I decided to buy a book to learn C#. I just finished a console "Hello World" application. In the book, the example shows that after the console displays "Hello World" and the time, it also says "Press any key to continue". In my application (with the same exact code) it just displays the "hello world" and date, and then quits, without giving you time to read it or "press any button". Very newbish question, but does anyone have an idea of why it's doing this?
Thanks,
James
Code:
public static void Main(string[] args)
{
// display "Hello World" on the screen
System.Console.WriteLine("Hello World");
// display the current date and time
System.Console.WriteLine("The current date and time is: " + System.DateTime.Now);
}