0

Porque cuando ejecutĂł el cĂłdigo y pongo el nombre la consola se cierra y no me permite ver el resto

static void Main(string[] args) { string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); Console.WriteLine("Hello {0}", yourName); }

11th Dec 2017, 5:59 AM
kevin reyes
kevin reyes - avatar
1 Answer
0
If when you run this it closes, that's because there isn't anything keeping the application from terminating. Add a Console.ReadKey() at the end of your main method.
12th Dec 2017, 7:36 PM
John
John - avatar