查询成绩

namespace ConsoleApplication9
{
class Program
{
static void Main(string[] args)
{
Console.Write("姓名:");
Console.ReadLine();
Console.WriteLine("成绩:");
double a = double.Parse(Console.ReadLine());
if (a > 0 && a < 59)
{
Console.WriteLine("继续努力");
if (a > 60 && a < 79)
{
Console.WriteLine("一般");
}
if (a > 80 && a <100)
{
Console.WriteLine("优秀");
}
}
else
{
Console.WriteLine("输入正确的分数:");
}
Console.ReadLine();
}
}
}

原文地址:https://www.cnblogs.com/weiwenxin01/p/5342979.html