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); }
1 ответ
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.