Console.WriteLine("请输入一个语文成绩");
int C = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入一个音乐成绩");
int M = Convert.ToInt32(Console.ReadLine());
bool b = C >= 90 && M > 80 || C == 100 && M > 70;
if (b)
{ Console.WriteLine("奖励100元");}
Console.ReadKey();


网友评论