实例1 语文和数学成绩
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(“请输入语文成绩”);
string strChinese = Console.ReadLine();
int chinese = Convert.ToInt32(strChinese);
Console.WriteLine("请输入数学成绩");
int math = Convert.ToInt32(Console.ReadLine());
bool result1=chinese>90 && math > 90;
Console.WriteLine(result1);
Console.ReadKey();
bool result2=chinese > 90 || math > 90;
Console.WriteLine(result2);
Console.ReadKey();
}
}
}
判断闰年
快捷键 CW TAB(两下)
using System;
using System.Collections.Generic;
using System.Linq;
us