Console.writeline("输入分数");
string fs = Console.readline();
int score = Convert.toint32(fs);
#region ======判断======
if (score >= 0 && score < 60)
{
console.writeline("不及格,请及时补考");
}
else if (score >= 60 && score < 80)
{
console.writeline("恭喜考试通过,成绩良好");
}
else if (score >= 80 && score < 100)
{
console.writeline("恭喜考试通过,成绩优秀");
}
else
{
console.writeline("输入错误");
}
console.writeline("结束");
时间: 2024-10-14 01:00:26