完成以下要求:
Console.WriteLine("请输入老苏的语文成绩");
string yuwen = Console.ReadLine();
Console.WriteLine("请输入老苏的音乐成绩");
string yinyue = Console.ReadLine();
int yyuwen = Convert.ToInt32(yuwen);
int yyinyue = Convert.ToInt32(yinyue);
if((yyuwen >90&&yyuwen <100)&&yyinyue >80) {
Console.WriteLine("奖励一百元");
}if (yyuwen == 100 && yyinyue > 70)
{
Console.WriteLine("奖励200元");
}
Console.WriteLine("end");
Console.ReadKey();
网友评论