完成以下要求:
Console.WriteLine("*******欢迎进入奖客富翁系统*********");
Console.WriteLine("1.注册");
Console.WriteLine("2.登录");
Console.WriteLine("3.抽奖");
Console.WriteLine("*******************************");
Console.WriteLine("请选择菜单:");
int i = Convert.ToInt32(Console.ReadLine());
if (i == 1 || i == 2 || i == 3)
{
switch (i)
{
case 1:
Console.WriteLine("注册");
break;
case 2:
Console.WriteLine("登录");
break;
case 3:
Console.WriteLine("抽奖");
break;
}
Console.WriteLine("是否继续?(y/n)");
string u=Console.ReadLine();
if (u=="y")
{
Console.WriteLine("请选择菜单:");
int o=Convert.ToInt32(Console.ReadLine());
switch (o)
{
case 1:
Console.WriteLine("注册");
break;
case 2:
Console.WriteLine("登录");
break;
case 3:
Console.WriteLine("抽奖");
break;
}
}
else
{
Console.WriteLine("退出系统");
}
}
else
{
Console.WriteLine("输入有误!");
}
Console.ReadKey();