第四节课第一个作业


#代码

Console.WriteLine("请输入苏哥哥的语文成绩");

string str_chinese = Console.ReadLine();

int chinese = Convert.ToInt32(str_chinese);

Console.WriteLine("请输入苏哥哥的数学成绩");

string str_math = Console.ReadLine();

int math= Convert.ToInt32(str_math);

Console.WriteLine("是否正确");

bool b = chinese > 90 || math > 90;

Console.WriteLine(b);

Console.ReadKey();

#效果

第四节课第一个作业_第1张图片
图片发自App

你可能感兴趣的:(第四节课第一个作业)