请用户输入姓名性别年龄,当用户按下某个键子后在屏幕上显示:您好:XX您的年龄是XX,是个X生
程序姓名年龄.jpg
Console.WriteLine ("请输入你的姓名");
string str_name=Console.ReadLine();
Console.WriteLine ("请输入你的年龄");
string str_year = Console.ReadLine();
Console.WriteLine("请输入你的性别");
string str_sex = Console.ReadLine();
Console.WriteLine("您好:{0}您的年龄是{1},是个{2}生",str_name,str_year,str_sex);
Console.ReadKey();