填写缺失的部分以获取用户输入,并将其存储在变量userName
中
Console.WriteLine("Enter username:"); @(6) userName = Console.@(10); Console.WriteLine("Username is: " + userName);
Console.WriteLine("Enter username:"); string userName = Console.ReadLine(); Console.WriteLine("Username is: " + userName);