标签:
while (true)
{
Console.Write("请输入您的名字:");
Console.ReadLine();
Console.Write("请输入您的分数:");
double a = Convert.ToDouble(Console.ReadLine ());
if (a >= 60 && a <= 80)
{
Console.WriteLine("及格");
}
else if (a > 80)
{
Console.WriteLine("表扬");
}
else if (a >= 50 && a <= 60)
{
Console.WriteLine("努力");
}
else
{
Console.WriteLine("偷懒");
}
}
标签:
原文地址:http://www.cnblogs.com/Mr-xue/p/4378923.html