try
{
double money = 0;
string xiangmu = "";
double dazhe = 0;
Console.WriteLine("<强哥游戏平台>游戏币支付");
Console.WriteLine("请选择你玩的游戏类型:");
Console.WriteLine(" 1.牌类");
Console.WriteLine(" 2.休闲竞技类");
int n = Convert.ToInt32(Console.ReadLine());
double t = Convert.ToDouble(Console.ReadLine());
switch (n)
{
case 1:
xiangmu = "牌类";
break;
case 2:
xiangmu = "休闲竞技类";
break;
}
if (n == 1)
{
if (t < 10)
{
dazhe = 0.8;
}
else
{
dazhe = 0.5;
}
money = t * dazhe * 10;
}
else
{
if (t < 10)
{
dazhe = 0.8;
}
else
{
dazhe = 0.5;
}
money = t * dazhe * 20;
}
Console.Write