using System;
using System.Collections.Generic;
using System.Text;
namespace _._7练习二用iF_else重试练习
{
class Program
{
static void Main(string[] args)
{
string result = Console.ReadLine();
for (int i = 0; i < 4; i++)
{
if (result == "A")
{
Console.WriteLine("A成绩的分数段是80-100");
}
else if (result == "B")
{
Console.WriteLine("B成绩的分数段是70-85");
}
else if (result == "C")
{
Console.WriteLine("C成绩的分数段是60-70");
}
else
{
Console.WriteLine("D成绩的分数段是60以下");
}
result = Console.ReadLine();//注意最后赋值
}
}
}
}
阅读(756) | 评论(0) | 转发(0) |