start:
string name;
int age; Console.Write("请输入您的名字:"); name = Console.ReadLine(); Console.Write("请输入您的年龄:"); age = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("姓名是:{0},年龄是:{1}", name, age); Console.WriteLine("姓名是:"+name+",年龄是:"+ age); Console.WriteLine("请按任意键继续。。。"); Console.ReadKey();goto start;