填写缺少的部分以获得用户输入,存储在变量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);